diff --git a/readme.md b/readme.md index 848a172..5bfdd72 100644 --- a/readme.md +++ b/readme.md @@ -70,6 +70,7 @@ All the below methods accept a value and returns a boolean for whether the value ##### .number(value) ##### .boolean(value) ##### .symbol(value) +##### .bigint(value) #### Built-in types @@ -143,6 +144,8 @@ is.boundFunction(function () {}); ##### .uint32Array(value) ##### .float32Array(value) ##### .float64Array(value) +##### .bigInt64Array(value) +##### .bigUint64Array(value) #### Structured data diff --git a/source/index.ts b/source/index.ts index 945b2e4..8b0de49 100644 --- a/source/index.ts +++ b/source/index.ts @@ -180,8 +180,8 @@ is.int32Array = isObjectOfType(TypeName.Int32Array); is.uint32Array = isObjectOfType(TypeName.Uint32Array); is.float32Array = isObjectOfType(TypeName.Float32Array); is.float64Array = isObjectOfType(TypeName.Float64Array); -is.bigint64Array = isObjectOfType(TypeName.BigInt64Array); -is.biguint64Array = isObjectOfType(TypeName.BigUint64Array); +is.bigInt64Array = isObjectOfType(TypeName.BigInt64Array); +is.bigUint64Array = isObjectOfType(TypeName.BigUint64Array); is.arrayBuffer = isObjectOfType(TypeName.ArrayBuffer); is.sharedArrayBuffer = isObjectOfType(TypeName.SharedArrayBuffer); diff --git a/test/test.ts b/test/test.ts index b0a9780..ce01004 100644 --- a/test/test.ts +++ b/test/test.ts @@ -326,15 +326,15 @@ const types = new Map([ typename: TypeName.Float64Array }], // TODO: Nodejs 10 only - // ['bigint64Array', { - // is: is.bigint64Array, + // ['bigInt64Array', { + // is: is.bigInt64Array, // fixtures: [ // new BigInt64Array() // ], // typename: TypeName.BigInt64Array // }], - // ['biguint64Array', { - // is: is.biguint64Array, + // ['bigUint64Array', { + // is: is.bigUint64Array, // fixtures: [ // new BigUint64Array() // ], @@ -631,12 +631,12 @@ test('is.float64Array', t => { }); // TODO: Nodejs 10 only -// test('is.bigint64Array', t => { -// testType(t, 'bigint64Array'); +// test('is.bigInt64Array', t => { +// testType(t, 'bigInt64Array'); // }); -// test('is.biguint64Array', t => { -// testType(t, 'biguint64Array'); +// test('is.bigUint64Array', t => { +// testType(t, 'bigUint64Array'); // }); test('is.arrayBuffer', t => {