Skip to content

Commit 553e81b

Browse files
committed
Auto-generated commit
1 parent 9f89d65 commit 553e81b

File tree

37 files changed

+1949
-35
lines changed

37 files changed

+1949
-35
lines changed

.editorconfig

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,101 +29,92 @@ trim_trailing_whitespace = true
2929
insert_final_newline = true
3030

3131
# Set properties for JavaScript files:
32-
[*.js]
33-
indent_style = tab
34-
35-
[*.js.txt]
32+
[*.{js,js.txt}]
3633
indent_style = tab
3734

3835
# Set properties for JavaScript ES module files:
39-
[*.mjs]
40-
indent_style = tab
41-
42-
[*.mjs.txt]
36+
[*.{mjs,mjs.txt}]
4337
indent_style = tab
4438

4539
# Set properties for JavaScript CommonJS files:
46-
[*.cjs]
40+
[*.{cjs,cjs.txt}]
4741
indent_style = tab
4842

49-
[*.cjs.txt]
50-
indent_style = tab
43+
# Set properties for JSON files:
44+
[*.{json,json.txt}]
45+
indent_style = space
46+
indent_size = 2
5147

5248
# Set properties for TypeScript files:
5349
[*.ts]
5450
indent_style = tab
5551

5652
# Set properties for Python files:
57-
[*.py]
53+
[*.{py,py.txt}]
5854
indent_style = space
5955
indent_size = 4
6056

6157
# Set properties for Julia files:
62-
[*.jl]
58+
[*.{jl,jl.txt}]
6359
indent_style = tab
6460

6561
# Set properties for R files:
66-
[*.R]
62+
[*.{R,R.txt}]
6763
indent_style = tab
6864

6965
# Set properties for C files:
70-
[*.c]
66+
[*.{c,c.txt}]
7167
indent_style = tab
7268

7369
# Set properties for C header files:
74-
[*.h]
70+
[*.{h,h.txt}]
7571
indent_style = tab
7672

7773
# Set properties for C++ files:
78-
[*.cpp]
74+
[*.{cpp,cpp.txt}]
7975
indent_style = tab
8076

8177
# Set properties for C++ header files:
82-
[*.hpp]
78+
[*.{hpp,hpp.txt}]
8379
indent_style = tab
8480

8581
# Set properties for Fortran files:
86-
[*.f]
82+
[*.{f,f.txt}]
8783
indent_style = space
8884
indent_size = 2
8985
insert_final_newline = false
9086

9187
# Set properties for shell files:
92-
[*.sh]
88+
[*.{sh,sh.txt}]
9389
indent_style = tab
9490

9591
# Set properties for AWK files:
96-
[*.awk]
92+
[*.{awk,awk.txt}]
9793
indent_style = tab
9894

9995
# Set properties for HTML files:
100-
[*.html]
96+
[*.{html,html.txt}]
10197
indent_style = tab
10298
tab_width = 2
10399

104100
# Set properties for XML files:
105-
[*.xml]
101+
[*.{xml,xml.txt}]
106102
indent_style = tab
107103
tab_width = 2
108104

109105
# Set properties for CSS files:
110-
[*.css]
106+
[*.{css,css.txt}]
111107
indent_style = tab
112108

113109
# Set properties for Makefiles:
114110
[Makefile]
115111
indent_style = tab
116112

117-
[*.mk]
113+
[*.{mk,mk.txt}]
118114
indent_style = tab
119115

120116
# Set properties for Markdown files:
121-
[*.md]
122-
indent_style = space
123-
indent_size = 4
124-
trim_trailing_whitespace = false
125-
126-
[*.md.txt]
117+
[*.{md,md.txt}]
127118
indent_style = space
128119
indent_size = 4
129120
trim_trailing_whitespace = false
@@ -139,7 +130,7 @@ indent_style = space
139130
indent_size = 4
140131

141132
# Set properties for `package.json` files:
142-
[package.json]
133+
[package.{json,json.txt}]
143134
indent_style = space
144135
indent_size = 2
145136

@@ -164,15 +155,15 @@ indent_style = space
164155
indent_size = 2
165156

166157
# Set properties for LaTeX files:
167-
[*.tex]
158+
[*.{tex,tex.txt}]
168159
indent_style = tab
169160

170161
# Set properties for LaTeX Bibliography files:
171-
[*.bib]
162+
[*.{bib,bib.txt}]
172163
indent_style = tab
173164

174165
# Set properties for YAML files:
175-
[*.yml]
166+
[*.{yml,yml.txt}]
176167
indent_style = space
177168
indent_size = 2
178169

README.md

Lines changed: 40 additions & 0 deletions
Large diffs are not rendered by default.

docs/types/index.d.ts

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import hasArrayBufferSupport = require( './../../has-arraybuffer-support' );
2929
import hasAsyncAwaitSupport = require( './../../has-async-await-support' );
3030
import hasAsyncIteratorSymbolSupport = require( './../../has-async-iterator-symbol-support' );
3131
import hasBigIntSupport = require( './../../has-bigint-support' );
32+
import hasBigInt64ArraySupport = require( './../../has-bigint64array-support' );
33+
import hasBigUint64ArraySupport = require( './../../has-biguint64array-support' );
3234
import hasClassSupport = require( './../../has-class-support' );
3335
import hasDataViewSupport = require( './../../has-dataview-support' );
3436
import hasDefinePropertiesSupport = require( './../../has-define-properties-support' );
@@ -73,11 +75,14 @@ import isArrayLength = require( './../../is-array-length' );
7375
import isArrayLike = require( './../../is-array-like' );
7476
import isArrayLikeObject = require( './../../is-array-like-object' );
7577
import isArrayBuffer = require( './../../is-arraybuffer' );
78+
import isArrayBufferView = require( './../../is-arraybuffer-view' );
7679
import isASCII = require( './../../is-ascii' );
7780
import isBetween = require( './../../is-between' );
7881
import isBetweenArray = require( './../../is-between-array' );
7982
import IS_BIG_ENDIAN = require( './../../is-big-endian' );
8083
import isBigInt = require( './../../is-bigint' );
84+
import isBigInt64Array = require( './../../is-bigint64array' );
85+
import isBigUint64Array = require( './../../is-biguint64array' );
8186
import isBinaryString = require( './../../is-binary-string' );
8287
import isBoolean = require( './../../is-boolean' );
8388
import isBooleanArray = require( './../../is-boolean-array' );
@@ -89,6 +94,7 @@ import isCentrosymmetricMatrix = require( './../../is-centrosymmetric-matrix' );
8994
import isCircular = require( './../../is-circular' );
9095
import isCircularArray = require( './../../is-circular-array' );
9196
import isCircularPlainObject = require( './../../is-circular-plain-object' );
97+
import isClass = require( './../../is-class' );
9298
import isCollection = require( './../../is-collection' );
9399
import isComplex = require( './../../is-complex' );
94100
import isComplexLike = require( './../../is-complex-like' );
@@ -108,6 +114,7 @@ import isDataPropertyIn = require( './../../is-data-property-in' );
108114
import isDataView = require( './../../is-dataview' );
109115
import isDateObject = require( './../../is-date-object' );
110116
import isDigitString = require( './../../is-digit-string' );
117+
import IS_DOCKER = require( './../../is-docker' );
111118
import IS_ELECTRON = require( './../../is-electron' );
112119
import IS_ELECTRON_MAIN = require( './../../is-electron-main' );
113120
import IS_ELECTRON_RENDERER = require( './../../is-electron-renderer' );
@@ -154,6 +161,7 @@ import isLowercase = require( './../../is-lowercase' );
154161
import isMatrixLike = require( './../../is-matrix-like' );
155162
import isMethod = require( './../../is-method' );
156163
import isMethodIn = require( './../../is-method-in' );
164+
import IS_MOBILE = require( './../../is-mobile' );
157165
import isNamedTypedTupleLike = require( './../../is-named-typed-tuple-like' );
158166
import isnan = require( './../../is-nan' );
159167
import isNaNArray = require( './../../is-nan-array' );
@@ -238,6 +246,7 @@ import isSymbol = require( './../../is-symbol' );
238246
import isSymbolArray = require( './../../is-symbol-array' );
239247
import isSymmetricMatrix = require( './../../is-symmetric-matrix' );
240248
import isSyntaxError = require( './../../is-syntax-error' );
249+
import IS_TOUCH_DEVICE = require( './../../is-touch-device' );
241250
import isTriangularNumber = require( './../../is-triangular-number' );
242251
import isTruthy = require( './../../is-truthy' );
243252
import isTruthyArray = require( './../../is-truthy-array' );
@@ -501,6 +510,28 @@ interface Namespace {
501510
*/
502511
hasBigIntSupport: typeof hasBigIntSupport;
503512

513+
/**
514+
* Tests for native `BigInt64Array` support.
515+
*
516+
* @returns boolean indicating if an environment has `BigInt64Array` support
517+
*
518+
* @example
519+
* var bool = ns.hasBigInt64ArraySupport();
520+
* // returns <boolean>
521+
*/
522+
hasBigInt64ArraySupport: typeof hasBigInt64ArraySupport;
523+
524+
/**
525+
* Tests for native `BigUint64Array` support.
526+
*
527+
* @returns boolean indicating if an environment has `BigUint64Array` support
528+
*
529+
* @example
530+
* var bool = ns.hasBigUint64ArraySupport();
531+
* // returns <boolean>
532+
*/
533+
hasBigUint64ArraySupport: typeof hasBigUint64ArraySupport;
534+
504535
/**
505536
* Tests for native `class` support.
506537
*
@@ -1218,6 +1249,23 @@ interface Namespace {
12181249
*/
12191250
isArrayBuffer: typeof isArrayBuffer;
12201251

1252+
/**
1253+
* Tests if a value is an `ArrayBuffer` view.
1254+
*
1255+
* @param value - value to test
1256+
* @returns boolean indicating whether value is an `ArrayBuffer` view
1257+
*
1258+
* @example
1259+
* var Int8Array = require( `@stdlib/array/int8` );
1260+
* var bool = ns.isArrayBufferView( new Int8Array() );
1261+
* // returns true
1262+
*
1263+
* @example
1264+
* var bool = ns.isArrayBufferView( [] );
1265+
* // returns false
1266+
*/
1267+
isArrayBufferView: typeof isArrayBufferView;
1268+
12211269
/**
12221270
* Tests whether a character belongs to the ASCII character set and whether this is true for all characters in a provided string.
12231271
*
@@ -1368,6 +1416,38 @@ interface Namespace {
13681416
*/
13691417
isBigInt: typeof isBigInt;
13701418

1419+
/**
1420+
* Tests if a value is a BigInt64Array.
1421+
*
1422+
* @param value - value to test
1423+
* @returns boolean indicating whether value is a BigInt64Array
1424+
*
1425+
* @example
1426+
* var bool = ns.isBigInt64Array( new BigInt64Array( 10 ) );
1427+
* // returns true
1428+
*
1429+
* @example
1430+
* var bool = ns.isBigInt64Array( [] );
1431+
* // returns false
1432+
*/
1433+
isBigInt64Array: typeof isBigInt64Array;
1434+
1435+
/**
1436+
* Tests if a value is a BigUint64Array.
1437+
*
1438+
* @param value - value to test
1439+
* @returns boolean indicating whether value is a BigUint64Array
1440+
*
1441+
* @example
1442+
* var bool = ns.isBigUint64Array( new BigUint64Array( 10 ) );
1443+
* // returns true
1444+
*
1445+
* @example
1446+
* var bool = ns.isBigUint64Array( [] );
1447+
* // returns false
1448+
*/
1449+
isBigUint64Array: typeof isBigUint64Array;
1450+
13711451
/**
13721452
* Tests if a value is a binary string.
13731453
*
@@ -1650,6 +1730,26 @@ interface Namespace {
16501730
*/
16511731
isCircularPlainObject: typeof isCircularPlainObject;
16521732

1733+
/**
1734+
* Tests if a value is a class.
1735+
*
1736+
* @param value - value to test
1737+
* @returns boolean indicating whether a value is a class
1738+
*
1739+
* @example
1740+
* var bool = ns.isClass( class Person {} );
1741+
* // returns true
1742+
*
1743+
* @example
1744+
* var bool = ns.isClass( function Person() {} );
1745+
* // returns false
1746+
*
1747+
* @example
1748+
* var bool = ns.isClass( null );
1749+
* // returns false
1750+
*/
1751+
isClass: typeof isClass;
1752+
16531753
/**
16541754
* Tests if a value is a collection.
16551755
*
@@ -2093,6 +2193,15 @@ interface Namespace {
20932193
*/
20942194
isDigitString: typeof isDigitString;
20952195

2196+
/**
2197+
* Boolean indicating if the process is running in a Docker container.
2198+
*
2199+
* @example
2200+
* var bool = ns.IS_DOCKER;
2201+
* // returns <boolean>
2202+
*/
2203+
IS_DOCKER: typeof IS_DOCKER;
2204+
20962205
/**
20972206
* Boolean indicating if the runtime is Electron.
20982207
*
@@ -3124,6 +3233,15 @@ interface Namespace {
31243233
*/
31253234
isMethodIn: typeof isMethodIn;
31263235

3236+
/**
3237+
* Boolean indicating if the current environment is a mobile device.
3238+
*
3239+
* @example
3240+
* var bool = ns.IS_MOBILE;
3241+
* // returns <boolean>
3242+
*/
3243+
IS_MOBILE: typeof IS_MOBILE;
3244+
31273245
/**
31283246
* Tests if a value is named typed tuple-like.
31293247
*
@@ -5381,6 +5499,15 @@ interface Namespace {
53815499
*/
53825500
isSyntaxError: typeof isSyntaxError;
53835501

5502+
/**
5503+
* Boolean indicating if the current environment is a touch device.
5504+
*
5505+
* @example
5506+
* var bool = ns.IS_TOUCH_DEVICE;
5507+
* // returns <boolean>
5508+
*/
5509+
IS_TOUCH_DEVICE: typeof IS_TOUCH_DEVICE;
5510+
53845511
/**
53855512
* Tests if a value is a triangular number.
53865513
*

0 commit comments

Comments
 (0)