{"_id":"@miyauci/isx","_rev":"16-a220a9edcf176ada3914c2b1c7b2a731","name":"@miyauci/isx","dist-tags":{"beta":"1.5.0-beta.1","latest":"1.5.0"},"versions":{"1.0.0-beta.25":{"name":"@miyauci/isx","version":"1.0.0-beta.25","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"exports":{"./date/is-valid-date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is-async-iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is-bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is-boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is-date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is-error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is-function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is-iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is-null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is-nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is-number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is-object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is-primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is-promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is-reg-exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is-string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is-symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is-undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./number/is-even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is-negative-number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is-non-negative-integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is-non-negative-number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is-non-positive-number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is-odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is-positive-number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"7414d17f93c606456e86de78bcb07fd54858c55b","_id":"@miyauci/isx@1.0.0-beta.25","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-h+g5o26Edi7dBm9Z5eh5rXyDz+nMhMwVP1DkhMSrolI50nYRI59PLHLriB+IEyRAND9qHcx006ygryZgsWVqJQ==","shasum":"74754137c8326a5347c2e2255a20e903d579b486","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.0.0-beta.25.tgz","fileCount":80,"unpackedSize":59897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdlhQZFkpyt9YkmUHcsdPSihabewCUecjEiREF8OSD1AiBCmvE7gvMfAz3lB+A8JMEpClez2r7zbyoXsgtJ3SP4Iw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHzN9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKehAAisD4yToWd7/RGAZ0+v2coOV51z7OgooBjsIV+HtXZAd/UrM5\r\n38MRYfYgZSyu+wTbm+bjQQZgxDERgdB2a06eJ35ITBMzg40kXFLwmW8TTc4o\r\nZGsOoB0oAoyTbIVHNiRVXZdvjHliTfFCskzTRL9aaxZ9xFOp25OvvwDZYNca\r\nbdviJNduonRb8IaxG5ZVKyHJz6XEkGHyO37hk8ID4EBziPpEugd7b8Zy66A4\r\n7e5WI310+9X29lJ5Ummf1Y3j59DwhA58ZxXTNuO3FO8blW/rbW2x8FwndL34\r\nVC+Yo4vNngYi05m+JaQgm2acOi1kx7SYeIpudEly613XuSrUV+a67xhnIMFe\r\ne4h/gQ1GQmnuKAmVw2wWbO2uiwTUPAtUPyw58iazJl8Op3IJ+YZTan6ysj4e\r\nMZB6IT1evTOwiBjyOyh+QeHkSbqQ/rv3rDljq/Fl6kWg9v8XdrdwbfWkZAUD\r\n4ZRvu12m1Z0e3CrWxj38TU6Rj0j2dPwBPf4470pUxcD8/8d6fBESUTt6RPw9\r\nZK6YFnvtPmSU+Ly1S42zYCa1Io8xnR7zEAHOhHlFOKrwKA3Ord8p6VQeiwE6\r\nIIoKctPGNRliFmBed4r2MiL56uMJMDt4nIJz+AmaliD8AZl6ZrUY69rxSXhd\r\nJh7CRSD3f9OX7zLunD67t6z7nmdg3/fC+2M=\r\n=jBaU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.0.0-beta.25_1679766397433_0.31236721942716916"},"_hasShrinkwrap":false},"1.0.0-beta.26":{"name":"@miyauci/isx","version":"1.0.0-beta.26","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"8f44c1a8d1483f1386226b7aa5490ab48147c32f","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isPromise\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isAsyncIterable\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.0.0-beta.26","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-XJYvZN397oDx1rNhX8L0JV0k1UjkKoEVmyBZqw1gaH5J48uI9pJXKdHwVxNMncDIOusPpeUApm8YUNJ6X1OD8w==","shasum":"d6da3c4afd2b42d875095851d51876b7e265854b","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.0.0-beta.26.tgz","fileCount":80,"unpackedSize":61722,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGks7Yw9zkqPDDyfyK4bzAmN+gr3MWV/Px8ygN/ZBQPVAiEAm8pmBfR4qndBU9xzPBrOa/KKwdqi7ANaFrxxlceI3Ys="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH9M5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkIA//UR+f2Xxo4bxeksRHkQkbHwqAF7zzXiJW+Vc7Hd1SHomYIMip\r\nodIqIU+/wjEIu3Cit3H/2V4qfYe/3P9FytEjLMdiOH36sc9iPvDf3rR4KGnv\r\nEbPwVew/GiASqk7FQgLN4JblCwJHXQlyZXY1HK1faN1CBTC0lkTVjIAe+Enl\r\nqjWXY360vFvle8A4OjffShvnBjGNURedkRRFpblwn2qfM/e7YSwpHR+rL1gg\r\npBl6Cw8I3aq2M+YoI+EKPdIb5MDEnPg97oewUPYdpFTMoCvxLC1U1DTWx/8a\r\nbtE8OWYEVa+0d5WPDcJx46eyj/8nDm9LAK4uu9aozR/Pk8vbF3uZTa5ZIFTt\r\nFmP2dIY1DhTEsv/aEKO0YPA+DGRibXI0Y+fSLFPHck3zNlD8VUrihUp+7vuV\r\nu/5ToLgYGbK6My/rTYejk1zPz+oL4dsMNTleQwNQWSNXZY3SPSLStSkmcnB4\r\nNKR7NL9+mt4upNS6ALzU0b3KeLgfsZD5iEqhe6fFiKmw4JJURl/Sur4Mo1dd\r\nChISi4llVa//nfRgypthZAmt+odPOjOuf2Z1TBehTvnfprHe2BIik90p4Aeq\r\nsdqzIurAa2dCPGP/Eml1g4a2PiUEF2MNQLd1JymbvcWiLzmwuZ7sI7U4JMf/\r\npRwX9NyYYOXK4gfmUmevzA7PYoNNdPn9jh0=\r\n=v6k0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.0.0-beta.26_1679807289583_0.28399110078358336"},"_hasShrinkwrap":false},"1.0.0":{"name":"@miyauci/isx","version":"1.0.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"0d34b7798f7aedaf069f11df2df4149c15166456","_id":"@miyauci/isx@1.0.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-W3MhSwkunnVu1NPl6sSWX+TkzqeZiVmINQsNuTF6ukE7MIuPnWupQRB/ZWaH603CGhQ8MXQ1BvbMwfXkUirexw==","shasum":"df2897429c7754dfc4986f1abbb67fe5007dc97a","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.0.0.tgz","fileCount":80,"unpackedSize":61714,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvOFJ2r1sGy9T6mJcSm+eSSU8+H7scHxB45Ws5GEQleAiAmMXRctV4GGrY3A2yqEKMtU8cBVnvodra+yXpdqx5JeA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH9nsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcIA/9HenrB88ImMmIW2Ndwh+pf4hKFD4JEYLAaOQbZF0UnN5L+E8e\r\nCBZypEjgiYIHcKt2pYmGsSwhbt8idgSa6kYN6v3eNKMqc+9IcMS70zVuyHBG\r\nYAriP8vMOHKqDZdOReu8T/0WJN7gnJKvQqon6NkaXa058h/vqurbhHY25CA6\r\ngSDZ8yXjG/GxUb9hEIZLT3yW6dz4ityppIrrAEPsb+Ps+02ugX9YfWfhz8ub\r\no6gTP9GHqPoT9Zq5GaI6Dq9jkV+5rXTDNECdhM7psHJTwKz6/dVtsbGFwjrV\r\nL4enSi/nlstZGihDyuXvLHT3VWnQsIxD0gLl2iu41qSn1IjbF59yQTE7nCR9\r\nATMfVH5rJWAtkkFWfp0yRyiGV4nLrfVgcgFrNNkrFIwRLZEV7mUA3/2ZVzqt\r\nfKBtQfZCCP3IyDj90iq+smCIBPRYIsGPWebrnwpkS9OysktlCNbPkxsYdwda\r\n2SP+b6N8MnV4IDQrJCeB8PgYthA6nwlQtSIIHHtHKgHLxXsk0cXUbnqdMiD5\r\nlO2Kt/pnCYcDtMOAAtD7G5nhfuZ97ae88HwLkpz1ulhJFGevwXr3o+4avO8Y\r\nCLYdJlwNxQKWvPK2iWDwBIPjVkR6x3oOFg2uta3253DNjZ5+/mQvo7JxjxLh\r\nIPho7CcSOUoMvbR+vJYwPEpViqZtiVau2F0=\r\n=f2Po\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.0.0_1679809004548_0.5956189654717334"},"_hasShrinkwrap":false},"1.1.0-beta.1":{"name":"@miyauci/isx","version":"1.1.0-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"db393aa93a6a573778eec61b9b8c8a6a7bc09008","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `readonly []` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `readonly T[]`, it has a `readonly [T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `readonly T[]`, it has a `readonly [T]` type guard.\n\n## Date subtypes\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.1.0-beta.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-47v+4ah9+Z8PAXwrwLebORmC69KAZRITD2npTVrhV9/12gdF6WDJEWPBk2L1OXed21uSuSbr33Ibqdf8PcjUnw==","shasum":"7ca267feffd11fd418140164bef1720bdef41c89","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.1.0-beta.1.tgz","fileCount":89,"unpackedSize":73196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQZ4VsC5UdMKk5r01BxHm5/ksTqVteLn3tFDGgCI07ywIhAKVnJ8wVUX/EMSVS0366zrBOyD9rVEWX3Z6jPUardOtU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIQc4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg5A//R1TizRAEGnAN0TuDBICpNB7wJYQKZWN/Sn7Y+IYlELsmBbke\r\nEW4Q8wJlYxKhIa92AebQnBWIIcNIYKzzYAqJeEffgr9fkuwwE5Kh99Jwc6Fx\r\nvcH6QOs5TtVaQZvZwOVMIF2sjfYy9VD0tZX8UqhVyKun3d1HKO1YHAafVKoV\r\nj54qj/njROG/yiXa9F7Z+KTEs8t8o+dMXc+nz5Q3tigh6JSiDtlnZTGenfUU\r\nle3TR5Av53ATkDZzUBmHd255WCnPC8BJzceihN/0lgv0lRYTrlj8kB0uRxMa\r\npoo8rG/jgsM1n8ltHdr8rDKBJZJqLw+RzfxG/LNhbaBUrUJ3JGswSWhXD1iB\r\nmWNYtR8nuLirZZdV/0xO+UupAJevabRGrvPT97yDd9UGy1ykP3EuUqd3eZjw\r\nyWwy7nD6QWJy0VoOenjLKBbVQTceymXVD4Li6bxMzdyKYMDNVAjUibyMFlRv\r\nwrDmujRJBTgv1UgTJpExcOQbJ4qvaQUcHXdmUhCQ9GNumN2csUS7/5CgxpOA\r\nCSTpbc8igYvS+Zs/S1sPw7rO35SBmr2HIZoZQ/RZEVdQdeSUZFStWVMJAwmU\r\nCs2M2aiFARYscV0mTP6hHsXq1OdjmoKIiI0bh2RrB3WomN63Ze4k2hcT2Ty7\r\nwwwGMTK9rZsoVBFXmQ17e+zSTn97rjeiblY=\r\n=XVC+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.1.0-beta.1_1679886136680_0.6411186449377608"},"_hasShrinkwrap":false},"1.1.0":{"name":"@miyauci/isx","version":"1.1.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"cfe913c60d65d4c46cd37cf5c535a577cd92658b","_id":"@miyauci/isx@1.1.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Tp6PuLKSfp2nZHdYMiwqFAU3XOQPJInMjmTX/1UbpqjLmdkYJUL2fDUuexfjJUCWfO7nWwJMV+otYhwEDBQ0KA==","shasum":"5a3493a1208706b8c749240ec985f1e0eb73ed43","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.1.0.tgz","fileCount":89,"unpackedSize":73189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGa+6aRpA2GnFKDpYjlZz1Cp6FH+OEVKtB8brLZgYbBnAiALt+cFW6TFABnjKFhX9hNE+QPSTALfEbEjh/Fa/7cnbg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIQlUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruEQ/9EUBFztkBwa/GIfEhKGaEn982MYvYwqp8yN8/myn1vPW2+FMF\r\n0O0Iga1ljHMZelZPro9a4QZpKed64Uun/KJJ1VNpXIxmg70DpouZ275ic5CE\r\nR3gx85bQgxmL64S6fs5f+MRtKmQiHLsxNDGWZsB1BWPgdpdyjnbZQHJBAUfK\r\nxSIUco/283QNNRSw09dsaVzwgUUrFoIvm9XoJ58B0WaaJTzszj+WS1fhcgyb\r\nFpNqkwg91kYYPG6K1bsAq7ns7gl5/pRHneRKI4qd4snP/2u8TVVwUlSoUnmC\r\nsh7gqSe7p6jv+8Bcj1Xx4Wd09wPy2ZiM/P9nazomzuW29mMLAK9ADfBdO191\r\nAbn6MITssPvTRtdZUuNMBl1XY5NH6wwBjL5NmR3oMmHiRqX7r6dxaBZWFOje\r\nI477DkGmzFIj1+psf81uG27LZF0bO1PoztGKVwqoXgQCpUJ1vgQ/wtWQJNJO\r\nt0JKDi8d8LWLPWiwRGnhwGUbLwvuxXTITCXnSraSJ7xPxY7Bm8pgKRqP2CIi\r\no+seRg7mT23vXkgQMi7K3pZ+aXSKgA0ryV5R+rNZfXQteiU4MLvbjBS8iu2q\r\nJjULzoJQq1Or780mMng7S7VwlGGhEP3CUQqANB5CJ3Lvwc0JZ6O4qonQm4EB\r\n4BTIFN8efpEgp4edx4WTuQX89SnXDptQ46c=\r\n=5RJT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.1.0_1679886675820_0.368754346400735"},"_hasShrinkwrap":false},"1.1.1-beta.1":{"name":"@miyauci/isx","version":"1.1.1-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"dff3a89cbd81c25a2feb4688e18fb5282063770e","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.1.1-beta.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-fPKEy8w1mQSJZ1nNm1eDzCRUO0hCukbQ73uds8K2HbmOl37QXP7D3oK81kMg+booxlxg6jdvRPoK1Q7c4YNpSA==","shasum":"8618e312d95ae2d61575891e1eca3dfe236ee4e6","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.1.1-beta.1.tgz","fileCount":89,"unpackedSize":73351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5E64wXqfT6o6S5FBJ7EGg7kdGHYStKmOsreEME0VkTQIhAP14Gi1WiGcrrjZVcyGL5NgiPokheWmoIpMdbBReSZuX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIZhBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtEQ//ZjekkC381x+fe4HYLzTcA+saZq15LNPYQXn8wmJdTxK5Ed4E\r\n1meYWSoChbbGyT5aHeV5itxEIAcPaQtK56yRZnl921LJPjXiCTA05DIxOJBD\r\nrWgWs93NanMe2YPqAFp1VVrWMUNqJ+JvzIjz0xI3KPEV0cdt+mm6px+VPQT0\r\nHKzGfa20GRj1kARkUiDKidah3/pgwTzuJk8EQ/QhSt4S1Gkvhy+kF4Uv4N3V\r\n15rehM71B4D/Yrzrtkoiytq1UOJUTxrpwu0k1+7An/5CyCjkbG4269jD8iTU\r\nZjz/e/idGjP3pn6KbkCsvjf70VGXhtSFEb4WoMyhNzlJY7VKy79zVMr5Xsjj\r\nWmco5Fl/W2O7ceEz6GbziPbZgBA99N5lqsWm9o1wIAGRYt+fVJ9ZCctX4yrd\r\n5Qw1BwXcfhl3fnmZ0lHj7KZp3Z8UGRnYaGhKyaJ0MG7Zifn77mkDu888FYt/\r\nxK/fNKjhVA/+iJ+lfnQss/3W1w/jtqB0tdDK4Hxgw+PjS/g3U2Cqa5rY5iKJ\r\n7PNLJQm9bizi2EfFYElYtQOwEuqs80qmtEsVLK6d980kIbdsNeCdvGwruL0h\r\nJSEj4VxETH40KNdgdV1fOrsQImsyCqlFZDyPQXowpwDVmdtq3hSe4/Th9keS\r\n0zrugQ3eIaRmgx2jExZHXBXZ1GMbxmXrt7o=\r\n=Lsmf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.1.1-beta.1_1679923265169_0.2617032804336463"},"_hasShrinkwrap":false},"1.1.1":{"name":"@miyauci/isx","version":"1.1.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"f93f8314edfc2fd2b6006df22f94abccae538fa1","_id":"@miyauci/isx@1.1.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-I675QDyEPVM8Ya/Yfr908YxhFMyoht6xysqKmEmkuohheyTs1ZO6mzm6tI/ddKfGNDymatwqiMtqfXjLI0seWg==","shasum":"20677ce49c2073548017726c74f4fb670c23584b","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.1.1.tgz","fileCount":89,"unpackedSize":73344,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSnB7vbvM2uevC0F73No4LYspK5wYTi0kKp79rfoVy0gIgecVGPpoDDFBE5j18REEOYMLG7saFrI3JxB9mDLFLycs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIZpbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoN2hAAgKWBouvThgAzyNN5oW62GwmUG/Fnh11uK5TodcS6uxAzE4pj\r\ntBugnfXQwoieFaPO9c49CuBmM0SKqTFO8cdqy7anr4SUyUteyEOv9/N16igx\r\nXMboUeI6nwf/2GbeFEWSvGbxdS3bTDYS3W5KXHD8AHvmLfYGvqoUEEKNbJp9\r\nM1gthcoiiS1FrbuWRKRBXYMFj5gobwETRxRZ13kAI9BFzde2bqpUAoFNyagU\r\nO1GO8k2E2OeI2xohOSKbxTCDsaEV2f1saHm0kVIi7+25gseFkQIxiePdDZ4g\r\nLIJRI6Kcj2BSlUjQXp1sRpbqAZt9gIjZY8QITRjjUw1RwaUzix52QInohA45\r\nCCEzFhCPtipa8jpgVVf2d0gYbyi6I64uXa3JDSSCe7TUhK7HGxyGaYBgO3YA\r\nEvRRffqEpRRpZ4rLBB25xuY4W7tQCZeS4uSiwQ2O4fTQ0o/UpV1NK71kzh/m\r\nhLFTGGhuNK4Yxydo6RGtciMBQRhuBQQ4yN5W1YBmJ2b7vMfbQ4s4KjaLauUY\r\n8Ub9PstykwmJE+TmSbMG9z+GfySFOoa2FEjy9c8dTnoFY//Ys0RREBW668YK\r\nvro+KX5a8T8XjIaJpRLwlaaxiWqHfWIqACG2+YynfN4GXgn/POPh1nKYWLSG\r\nvrf/ZsWFQDQAEKUt7GrfwVwy1DCxRyLKNYQ=\r\n=UbKS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.1.1_1679923802959_0.07151496351264597"},"_hasShrinkwrap":false},"1.2.0-beta.1":{"name":"@miyauci/isx","version":"1.2.0-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_array":["types/is_array.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"88ed5902f6928f5dff6a01863fd0200d8b90b7ec","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.2.0-beta.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MOhGctrEpax57sPJ4lQhiRW7a7IJluLmu365oRyDL357zKBDF3AFt3POLhlHcZQhFy1zSBjCIuITfSPcgHDJvw==","shasum":"90301ac4d7f2ff01454e805342e62845d9563ac9","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.2.0-beta.1.tgz","fileCount":92,"unpackedSize":76009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6eoQsX0RsFkVcp6IWLZmP5aXWhTSTplbnxEZ9W78FSgIhAMkKMAFRS+6KGEhWJ/HOwThrd8x5n0ublbeuPbVUM/c7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNRUTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAMw/9Gh2+FMdNLHtxm7OgqcPvtbh8jCgKk9MXWWpv0c16hT5IIe+G\r\njcLY/Ev35JTXquYOO86tGWEgnGcwRABGHzcpcFWLs8jF9DXrNsdTVPPot/kw\r\n75/KTudt3vyr6Z5gPcuAjxi2xtWMu5uotSTwIk2t9ngNrZ9HW7cZSsZHlfG+\r\nqeVTevlsEkQkHIz7q8DUNK2L+k4CPTWSZ4sDkvO5bTVn76SeEjxCCgYfbzmK\r\njO3l9kQBxW/16P0ZjwVvN9wAP4Nhn4QnQggAwzZgNeIqj4F7P6A3uBopZ+Me\r\nBOJd5pnF2csHY/WdzbLvCAGT1N6b3XQayWmldeeyMq4X4mgZAjKd4ROyj2P6\r\nOY2dsSnWU347JeSLWBa6vQl3tzZMbIWOXa/z5rHRjUz6KrTegjg8ZrYR0KbT\r\nz6re64HUfWD0rTlar13fScVBC73KmPQHRJr3vIDTCfZjT0GkgMs01KNMa8vl\r\nPPvIrcqrTtUoQMliM+1XIzPxbJwjMlRP6VU7CA1DuG/x9BpiOcK/3UmxrySW\r\nx8O2Sug/u3MC+L52k7/uoHetMmSNNlmAlYMfMevJs5Ju/kgpu/Xh4TkXZcew\r\n1lpo4jqp/wgg+VgDLy0Ld75jXrzAukDYnTRF67Lv5VL6x+BzzVfmtHr4z0wf\r\n3QIihDfnvA3HfIPmlwFM4OHiePmUyYE4F+g=\r\n=V1N4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.2.0-beta.1_1681200402942_0.6408303099253967"},"_hasShrinkwrap":false},"1.2.0":{"name":"@miyauci/isx","version":"1.2.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date":["types/date/is_valid_date.d.ts"],"is_array":["types/is_array.d.ts"],"is_async_iterable":["types/is_async_iterable.d.ts"],"is_bigint":["types/is_bigint.d.ts"],"is_boolean":["types/is_boolean.d.ts"],"is_date":["types/is_date.d.ts"],"is_error":["types/is_error.d.ts"],"is_function":["types/is_function.d.ts"],"is_iterable":["types/is_iterable.d.ts"],"is_null":["types/is_null.d.ts"],"is_nullable":["types/is_nullable.d.ts"],"is_number":["types/is_number.d.ts"],"is_object":["types/is_object.d.ts"],"is_primitive":["types/is_primitive.d.ts"],"is_promise":["types/is_promise.d.ts"],"is_reg_exp":["types/is_reg_exp.d.ts"],"is_string":["types/is_string.d.ts"],"is_symbol":["types/is_symbol.d.ts"],"is_undefined":["types/is_undefined.d.ts"],"iterable/is_empty":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty":["types/iterable/is_not_empty.d.ts"],"iterable/is_single":["types/iterable/is_single.d.ts"],"number/is_even":["types/number/is_even.d.ts"],"number/is_negative_number":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number":["types/number/is_non_positive_number.d.ts"],"number/is_odd":["types/number/is_odd.d.ts"],"number/is_positive_number":["types/number/is_positive_number.d.ts"]}},"exports":{"./date/is_valid_date":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_null":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"}},"gitHead":"9d7ca1f01c8dbf2c5a0a437864399bb709afa761","_id":"@miyauci/isx@1.2.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ySY/NGpao3DSLHJ20+8K8Px6EbXtgnnQC1wsVlnA4M13fpwa1xZ9cWh4VPhgbKlyg8IFiYK9fDuiD8bQlBOc9A==","shasum":"c424cbb1da4c4983b93762082ce57f6a04015c35","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.2.0.tgz","fileCount":92,"unpackedSize":75984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4ebQKRRtOU8kkxJoyY0WFReHqS24QnDRaq6oPqSCNaAIgE9nxQ1Uy/GpZ/rn1lCYWEUe+scXpjiSRFL+CwMHkeLk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNRgGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJ1g//QcpWbbfSxRBwdij8HvifQI3nkBLkoNY2M41NOWRR7ivpXzZG\r\nvi2O4qanwsvjhOqdUZz0YI/H/JIZdCmMiKq5ohlwU1iE46heBSzkCZrzMGpt\r\nuLZ5x1BJcabF1HdKolgpKxoAHqN481OC7zwXtHyNbBwxUo9qMp46RB5q7/Rv\r\ngL3bZtpmK9PT4fo0cRvjNT2Nqb7p8BR8GeYEZloNnIbAC/rayXfnb38im8gb\r\nczlG68v3CUdQT0K+lM8RqfwBQuJP2xug34cTa4lmsMF6dbrdOThIlKdeNMeJ\r\n7iNA6YTcxWum37sTQn3zVzCB7dTsgv1OGrP/1lopbFtKHtBOQN9K0kAw93Qw\r\nBLMiJS8b31kqn90+db7O3/h/rKE5PSrGFOaYo3KuTWY0w/PxQ41bpTBbXkCU\r\nd/PKgy8D/+dPEBJmOcEnjXzJLqohoWBPAJ8uTa0vwCFP/ldDeOXd6T1Pbbcz\r\nTtTUpTHUvBEeSQF9vW2VsJqzxl8uJ3oZnHdBSyaASTr9bmQFK8fW7aE3QrHc\r\nyWdbDALP2Z7m9yN25wT/0DGivj8jB8AmPh4NtD0xBuQd0KLfuQUCTZLbDaYX\r\nOl5ZivZHHTJMIm41tvkJ9Mvi7vEncfv3e8/ct2pAeRQF9Y2683Z1Mr0s8FMu\r\nO6659PlU3yMRSkX+tfPtvU2zz8GyH2jef5M=\r\n=nusT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.2.0_1681201158137_0.3365518075783984"},"_hasShrinkwrap":false},"1.3.0-beta.1":{"name":"@miyauci/isx","version":"1.3.0-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"}},"gitHead":"9698f3a92d6e3bd63252efcda5dd4f2fa08b7587","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isNonNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_non_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_non_nullable.ts)\n\nWhether the input is `NonNullable` or not.\n\n```ts\nimport { isNonNullable } from \"https://deno.land/x/isx@$VERSION/is_non_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNullable(\"\"), true);\nassertEquals(isNonNullable(null), false);\nassertEquals(isNonNullable(undefined), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n### isUnitInterval\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_unit_interval.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_unit_interval.ts)\n\nWhether the input is unit interval or not. The unit interval refers to the\ninterval between 0 and 1 on the real number line.\n\n```ts\nimport { isUnitInterval } from \"https://deno.land/x/isx@$VERSION/number/is_unit_interval.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUnitInterval(0), true);\nassertEquals(isUnitInterval(1.0), true);\nassertEquals(isUnitInterval(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.3.0-beta.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NTwgUTO3s9eqRlvuKMh4YUK64atXFtDGfjuF7D8mtky0JcCk2qzhaR1mwRHxNRtixKuXzZM0S3jPK04sn3DFuw==","shasum":"77d384006ad26c1d858cc5559e3444820132ab7e","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.3.0-beta.1.tgz","fileCount":98,"unpackedSize":81675,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXICZ+w78Z0t+P2Mb5licT8MKIB4bJe4jWnuxaDEcFyAiAocf9JajYF6mIrIAsqpjV1UM2sDDNqsDx45Nk0RgNnGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkODV5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOrA/+PBaVzA3kt0Ft2FfalmnMyLg8/Ps0o2Fnw0iTzFp3sStDgjPK\r\n8tAfAXUdCfYYBqmvo8SBr2LLZegFoxBRzGZgriY0mQJHxpKVPzc5PBKG0gjK\r\nYbZ4DcgBkxLiZHbuS/H4PgfibdmRVBwGKYzFXUMNJjuygB7k5r2bJSbefUfk\r\npLvJtOyBqtLP0FnXjxP5XCV46c9QDjz8oGByzbcWGv3zwjLFGSYyFq3d47z8\r\nHcmwKURWUjF4jrUZpGkwR/TTirwZ99nb9OeZWwfCTi8JV531J7mFYOtgJPQ7\r\nRsCF5tsSTSsiq2xXDDOgq0+GrRRUIsl5XM2DcoWsQpcbAzel65KWI+N3LVrm\r\nW8Za5I9AvWXwAzn7rCtPRL+xStQm6QE03SNWhjlj/XiIM7SVAvXJOK2HTRPQ\r\noUALQ4CSnxQoVJQPU3LjJScACKbn2rp52ZRQ7ARLTHUKNCb13qcUFvSdz37T\r\nMv4owpuDCbyIXSd9OPCiTx/nBZEHLgG9VW858vtxUJ00P2dr9xnfEydy0ZAf\r\nnUVQQYFfT5vb61dDJHnTjvheGEGNYMLj+QmwV8Rzw+BQNswD4+zPsFd2kOki\r\n+I+DrO9wO6uTlpBn/f/KaedPMOA7IywhmVg5rvk3iuPLyFHc9S3AV8QOCOzC\r\nHharxmzrdNYrW2Z61IFB1YYADTbCgsBZJcE=\r\n=UX9s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.3.0-beta.1_1681405305428_0.043885447997096705"},"_hasShrinkwrap":false},"1.3.0":{"name":"@miyauci/isx","version":"1.3.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"}},"gitHead":"85e1ed4a2a56a16ca3d58e196601f577e5ae4b17","_id":"@miyauci/isx@1.3.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GhYgCGC+pRkuy+jbhQ6nKjDvw4MFb4CRKjixHRA5jAxfc4aWGXEaE+EZYw/t83+F8uBhCBdaSMAWleGKwA9kzw==","shasum":"6f02b2bdb6e9c7aee601b9094e41027106ec1eb7","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.3.0.tgz","fileCount":98,"unpackedSize":81668,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/+FuP0ZB99lDBMMqoalPxa4A4b0ubCvDh2YfRf+Xy4AiBv2g8SzEOzl4kc6haVmuFXTQVUxhFMyW1U7skLv+qvmQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkODabACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqp7Q//YYYngJQV45zZwddCoddVZuI4wrk8VYzN1nJvXdhYHfYKuxv1\r\nUi+M7mXZ6KI8Jt3HENAi/BAql3cl2QT0dlGcMCbzRFuqSPFqwRKVGCsMpmCq\r\nGeDYGrcHkX0HRueEYhKlE5arWCnUsGs4wA2kUeejZkiyOjQ19/50rAAFt80c\r\ngG1hlVyT3MMmfEvb7/snNcZ4SAiTEEYE/RsGfsvfJctf5u25OTQAMjn2uC+M\r\nBTmFywi5FrUjkkhKdt6nHjm0WYY2KQUP9mj+KYAGV3UryUAAavNsPyACisPj\r\nrvZbKry9b2OLpQ3THNTKvMQ5MgG09zmXVcVtcBouDV7nYztajakyGjbV268h\r\nPr8wnRWK0bWL6LyETgBwtZrkpjIUz9/6DQzLPbJ6Gp/UsULjHFYPdf9XXde7\r\ntZy6Fa2YP5Vvei1jgIsKhpNdpClH960YOb2EaKQWB/9K/LVPlAjWnLnLqPP7\r\nITuQ6pbTIs/ovagvhgRTLvtihAoNMj6zoCxSvSUzDjnUV/s/0Tj9/lhHh3z2\r\nP19g544SGmYu+qBAX4B8hIZT5E06szdh1ypPgHXBWTSZ5lLVth/ZafwdksHW\r\nM8t7wg/8k6y7GRiClfqT+KQL48DTTY72g1eGMdS68gJN3nh8UHm92X/g0yUz\r\n/jWkXK6Ij6JMlSVN+tl5X4VTLBdzlSGyy+Q=\r\n=jnsq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.3.0_1681405595122_0.8143816625192415"},"_hasShrinkwrap":false},"1.3.1-beta.1":{"name":"@miyauci/isx","version":"1.3.1-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"}},"gitHead":"3395eb530bf6471577a3a9caf6217fa2ff39446c","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isNonNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_non_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_non_nullable.ts)\n\nWhether the input is `NonNullable` or not.\n\n```ts\nimport { isNonNullable } from \"https://deno.land/x/isx@$VERSION/is_non_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNullable(\"\"), true);\nassertEquals(isNonNullable(null), false);\nassertEquals(isNonNullable(undefined), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveNumber(1), true);\nassertEquals(isPositiveNumber(0), false);\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_positive_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonPositiveNumber(0), true);\nassertEquals(isNonPositiveNumber(-1), true);\nassertEquals(isNonPositiveNumber(1), false);\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNegativeNumber(-1), true);\nassertEquals(isNegativeNumber(0), false);\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeNumber(0), true);\nassertEquals(isNonNegativeNumber(1), true);\nassertEquals(isNonNegativeNumber(-1), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n### isUnitInterval\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_unit_interval.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_unit_interval.ts)\n\nWhether the input is unit interval or not. The unit interval refers to the\ninterval between 0 and 1 on the real number line.\n\n```ts\nimport { isUnitInterval } from \"https://deno.land/x/isx@$VERSION/number/is_unit_interval.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUnitInterval(0), true);\nassertEquals(isUnitInterval(1.0), true);\nassertEquals(isUnitInterval(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.3.1-beta.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6ERMoyAMKyNn7fwil5AsPH+mzYKmmbsUwxJiV9JOzkcDmJiBKUDjyjdYDU95Lq8GLVm7bIL17G/oJvpKw+f9VQ==","shasum":"ef4ef449ac387ee122ce1f061ea135434d65e854","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.3.1-beta.1.tgz","fileCount":98,"unpackedSize":82101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyU3LKgJGsG7Ls6Zvjou239qorUWB6L5thw1ev8h1hhQIgRzT6PUMReY9Bm4trI65sSc4EbZHp/kiivxBuRUX9fdE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQW8qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoEQ//W7ADdFoQNAnSqCVR/ot5KsU4Q0aaw1AkQQyQoUeiptUzT0XC\r\nxQGFugRSj8+nvOe9+Po+Njc9It+U1Crz58icTqeLFwPQTcoEf/RZnQUNBPk/\r\n+QTI8NO/xi2FZy4Z84DRvrUStdn+umx2XWvdB2hFX2z5Dfitpufo7e9QihOx\r\nkyud+OgR+RXVoKQdRRwrCCDsh22DI71V3uvhGfhuUyrcsi65lsqHc13j76jT\r\nF6btKW003pb+ZbvVckArFxkhKS1+Wor7lmtfOmX1dB5OsYNPe/OAMOUVOh6F\r\nIuIO0RmRWedUE/uZyiU3TCBTveFJ7IoJSpUFQ4F4z01tQugIDrQEX7VOIhHN\r\nchWvC6G8TYZEX/km7P1jNMkhZIuxl6jwfaiAZB8zyfR2izDmc6VzY/801hl8\r\nW83DMkRnESrt41RnSrQsdi/noRU/kGkWmuJum9kO3lzd2vyL+tafEPNYfFU3\r\nqm4/vVLO2dvnmU1UftwMSGqvs71vdEMTbCK9031wXEvknFSsaJwqyceml6rM\r\nFJ5ubt4e0V5gerYggAg+Irj9mUjj/s69Ftxh6wl+7Wd0/VA9FaUYOdCFQwIB\r\nkgIcoPR53HQHcrNukpzklEAZ8yggPT/qpcr0zzey46ngq0IGxuZuCjgTBXvZ\r\n87rPoC4mz6L/4Q312p2QY1d5dz+n/cjhFsY=\r\n=40jt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.3.1-beta.1_1682009897955_0.5112453411983258"},"_hasShrinkwrap":false},"1.3.1":{"name":"@miyauci/isx","version":"1.3.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"}},"gitHead":"08bbcd080464dfef6239c6ab3f16a21fbf7fb315","_id":"@miyauci/isx@1.3.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-dmwimRyu8OSrYaPzQg+W2ZciMwAWLAZYWoU6Y6NWBH7sU1hLUfkMyLMzOzBDhbPmfzkUGMjaua7NqYGLiA8vzw==","shasum":"7754e24edf85e957c4064382c2880e418abdd345","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.3.1.tgz","fileCount":98,"unpackedSize":82094,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMndPJjh4YET1iFeuoFz0go8WMEuM/vLKVbfV7Zw360AiEAhfB0JY08PxE6Ze1DIdmNJfI1/gzOJFfzP19gYN18JbE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQW/pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkTQ/+OI0zacvVILoSp+Y1ImeP4BXJlHgYJG3xVV4D9kj9K83Yqbbf\r\nvp60tdI/gvMW9Yu57W8hG3H6aPYnngeIyjooY1sj+mDPJdRoY9YL9bONAgy1\r\nvl8Z1aMIToiJfi8PhzPHJ5SLjjsCicmDI5+EiLCj7Tj3dAYpaGt4aJtlmvw/\r\nf7XE9MQNe9VaFbxFApuChjNKS3O0vmgvn+mU+fkc9hVIsX7BemeAB485ftjO\r\nwwO8LD5SMqwjpNcY8KCIdx0aB57Y23sRaDX8s6mF9tv+sjTHpAOfC9Cl5UGQ\r\npSu9bIu12uDh9Q1Bf967NiYX2v7F1M/93o8A72Ut0nBqmGAXKXIh4I0/f6Iy\r\npvhClB2WOCHb/VdYsIcNOOPZZ3ki87ow9ydftjdLZfiUTbe5cFCsZXVr/t8M\r\nYOfOpRT2GqmjvwwYzcqkRM3hf2Bw57DQaAXJ8FElwx6F0NSqVOgQvlvDJa98\r\nNKLA/9RgGtWWG8w9pJoCP2C30yGmmzKOYwxqNSBud3807z3FGjGTCsS+1Mud\r\nUrBy5jntV5KuRiu7rDaSzu2/DZk9RWUr2to7SIop81BsjFpbbX5szC+TACmn\r\n+OntciQ9Kr5vK5YjtCK+kuOSsxQ0uELNkIdUWn2M95a7cWpbKO88+2odRv6f\r\ng8oToY4yWfy6+BaPCRuXCYqgac/U/Ey6dlw=\r\n=mPil\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.3.1_1682010088708_0.34918218459820527"},"_hasShrinkwrap":false},"1.4.0-beta.1":{"name":"@miyauci/isx","version":"1.4.0-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_integer.js":["types/number/is_positive_integer.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"],"numeric/is_negative_number.js":["types/numeric/is_negative_number.d.ts"],"numeric/is_non_negative_number.js":["types/numeric/is_non_negative_number.d.ts"],"numeric/is_non_positive_number.js":["types/numeric/is_non_positive_number.d.ts"],"numeric/is_positive_number.js":["types/numeric/is_positive_number.d.ts"],"numeric/is_unit_interval.js":["types/numeric/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_integer.js":{"import":"./esm/number/is_positive_integer.js","require":"./script/number/is_positive_integer.js","types":"./types/number/is_positive_integer.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"},"./numeric/is_negative_number.js":{"import":"./esm/numeric/is_negative_number.js","require":"./script/numeric/is_negative_number.js","types":"./types/numeric/is_negative_number.d.ts"},"./numeric/is_non_negative_number.js":{"import":"./esm/numeric/is_non_negative_number.js","require":"./script/numeric/is_non_negative_number.js","types":"./types/numeric/is_non_negative_number.d.ts"},"./numeric/is_non_positive_number.js":{"import":"./esm/numeric/is_non_positive_number.js","require":"./script/numeric/is_non_positive_number.js","types":"./types/numeric/is_non_positive_number.d.ts"},"./numeric/is_positive_number.js":{"import":"./esm/numeric/is_positive_number.js","require":"./script/numeric/is_positive_number.js","types":"./types/numeric/is_positive_number.d.ts"},"./numeric/is_unit_interval.js":{"import":"./esm/numeric/is_unit_interval.js","require":"./script/numeric/is_unit_interval.js","types":"./types/numeric/is_unit_interval.d.ts"}},"gitHead":"3b777aa8305f6a86bc58fdc323de31212601bf96","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## isNonNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_non_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_non_nullable.ts)\n\nWhether the input is `NonNullable` or not.\n\n```ts\nimport { isNonNullable } from \"https://deno.land/x/isx@$VERSION/is_non_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNullable(\"\"), true);\nassertEquals(isNonNullable(null), false);\nassertEquals(isNonNullable(undefined), false);\n```\n\n## isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable(() => {}), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Numeric subtypes\n\nValidates a subtype of `number` or `bigint`.\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isPositiveNumber(1));\nassert(isPositiveNumber(Infinity));\nassertFalse(isPositiveNumber(0));\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonPositiveNumber(0));\nassert(isNonPositiveNumber(-1));\nassertFalse(isNonPositiveNumber(1));\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNegativeNumber(-1));\nassertFalse(isNegativeNumber(0));\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonNegativeNumber(0));\nassert(isNonNegativeNumber(1));\nassertFalse(isNonNegativeNumber(-1));\n```\n\n### isUnitInterval\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_unit_interval.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_unit_interval.ts)\n\nWhether the input is unit interval or not. The unit interval refers to the\ninterval between 0 and 1 on the real number line.\n\n```ts\nimport { isUnitInterval } from \"https://deno.land/x/isx@$VERSION/numeric/is_unit_interval.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isUnitInterval(0));\nassert(isUnitInterval(1.0));\nassertFalse(isUnitInterval(-1));\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_integer.ts)\n\nWhether the input is positive integer or not.\n\n```ts\nimport { isPositiveInteger } from \"https://deno.land/x/isx@$VERSION/number/is_positive_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveInteger(1), true);\nassertEquals(isPositiveInteger(0), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\nCopyright © 2023-present [Tomoki Miyauchi](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.4.0-beta.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O5cWl2l8wGGHeT3DWIlqhoLJkZmLSPU6rsAOl3PL8wv0PgaBqE3BI1hKanPtFdLIQAITfkk5hgQW46SlCyADLg==","shasum":"7be90743ecb7df804d2053e5a7ebcf77243a4cc2","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.4.0-beta.1.tgz","fileCount":116,"unpackedSize":96999,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2nRS8gSsqnjUIISDdhi1sv/LxPKoyU51dARUjVsEiKAiAX214USKEatduFpQvTs+frsoWZzZVJIYfAcpMOmaMt2A=="}]},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.4.0-beta.1_1685538624882_0.019713226911284965"},"_hasShrinkwrap":false},"1.4.0":{"name":"@miyauci/isx","version":"1.4.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_integer.js":["types/number/is_positive_integer.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"],"numeric/is_negative_number.js":["types/numeric/is_negative_number.d.ts"],"numeric/is_non_negative_number.js":["types/numeric/is_non_negative_number.d.ts"],"numeric/is_non_positive_number.js":["types/numeric/is_non_positive_number.d.ts"],"numeric/is_positive_number.js":["types/numeric/is_positive_number.d.ts"],"numeric/is_unit_interval.js":["types/numeric/is_unit_interval.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js","types":"./types/date/is_valid_date.d.ts"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js","types":"./types/is_array.d.ts"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js","types":"./types/is_async_iterable.d.ts"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js","types":"./types/is_bigint.d.ts"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js","types":"./types/is_boolean.d.ts"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js","types":"./types/is_date.d.ts"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js","types":"./types/is_error.d.ts"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js","types":"./types/is_function.d.ts"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js","types":"./types/is_iterable.d.ts"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js","types":"./types/is_non_nullable.d.ts"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js","types":"./types/is_null.d.ts"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js","types":"./types/is_nullable.d.ts"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js","types":"./types/is_number.d.ts"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js","types":"./types/is_object.d.ts"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js","types":"./types/is_primitive.d.ts"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js","types":"./types/is_promise.d.ts"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js","types":"./types/is_reg_exp.d.ts"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js","types":"./types/is_string.d.ts"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js","types":"./types/is_symbol.d.ts"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js","types":"./types/is_undefined.d.ts"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js","types":"./types/iterable/is_empty.d.ts"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js","types":"./types/iterable/is_not_empty.d.ts"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js","types":"./types/iterable/is_single.d.ts"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js","types":"./types/number/is_even.d.ts"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js","types":"./types/number/is_negative_number.d.ts"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js","types":"./types/number/is_non_negative_integer.d.ts"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js","types":"./types/number/is_non_negative_number.d.ts"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js","types":"./types/number/is_non_positive_number.d.ts"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js","types":"./types/number/is_odd.d.ts"},"./number/is_positive_integer.js":{"import":"./esm/number/is_positive_integer.js","require":"./script/number/is_positive_integer.js","types":"./types/number/is_positive_integer.d.ts"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js","types":"./types/number/is_positive_number.d.ts"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js","types":"./types/number/is_unit_interval.d.ts"},"./numeric/is_negative_number.js":{"import":"./esm/numeric/is_negative_number.js","require":"./script/numeric/is_negative_number.js","types":"./types/numeric/is_negative_number.d.ts"},"./numeric/is_non_negative_number.js":{"import":"./esm/numeric/is_non_negative_number.js","require":"./script/numeric/is_non_negative_number.js","types":"./types/numeric/is_non_negative_number.d.ts"},"./numeric/is_non_positive_number.js":{"import":"./esm/numeric/is_non_positive_number.js","require":"./script/numeric/is_non_positive_number.js","types":"./types/numeric/is_non_positive_number.d.ts"},"./numeric/is_positive_number.js":{"import":"./esm/numeric/is_positive_number.js","require":"./script/numeric/is_positive_number.js","types":"./types/numeric/is_positive_number.d.ts"},"./numeric/is_unit_interval.js":{"import":"./esm/numeric/is_unit_interval.js","require":"./script/numeric/is_unit_interval.js","types":"./types/numeric/is_unit_interval.d.ts"}},"gitHead":"2c4476d401d5b7d9ae1b9eac10a8581656fc6732","_id":"@miyauci/isx@1.4.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6PplVJjCKDSq0ppE02M4iTZOtjywQ6tL6tfZxyoC3ifM5MGTuJP+QuZrpUdcZIXDC7L7a5wh7Wf9jtaXQmy6cw==","shasum":"1012bcaf04a9260dbed6f2ccc9c367a5c23c6d47","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.4.0.tgz","fileCount":116,"unpackedSize":96992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBeihDppl+Msywv+2nXhE2sVNiYb5FXjjwVKa9bEVf79AiEAhKd0fVgpWPWa6HZnlgFc76Ur8gSsZwdmDZoUYTITCo0="}]},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.4.0_1685544250057_0.9605948202580064"},"_hasShrinkwrap":false},"1.5.0-beta.1":{"name":"@miyauci/isx","version":"1.5.0-beta.1","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_integer.js":["types/number/is_positive_integer.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"],"numeric/is_negative_number.js":["types/numeric/is_negative_number.d.ts"],"numeric/is_non_negative_number.js":["types/numeric/is_non_negative_number.d.ts"],"numeric/is_non_positive_number.js":["types/numeric/is_non_positive_number.d.ts"],"numeric/is_positive_number.js":["types/numeric/is_positive_number.d.ts"],"numeric/is_unit_interval.js":["types/numeric/is_unit_interval.d.ts"],"object/is_async_iterable.js":["types/object/is_async_iterable.d.ts"],"object/is_iterable.js":["types/object/is_iterable.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js"},"./number/is_positive_integer.js":{"import":"./esm/number/is_positive_integer.js","require":"./script/number/is_positive_integer.js"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js"},"./numeric/is_negative_number.js":{"import":"./esm/numeric/is_negative_number.js","require":"./script/numeric/is_negative_number.js"},"./numeric/is_non_negative_number.js":{"import":"./esm/numeric/is_non_negative_number.js","require":"./script/numeric/is_non_negative_number.js"},"./numeric/is_non_positive_number.js":{"import":"./esm/numeric/is_non_positive_number.js","require":"./script/numeric/is_non_positive_number.js"},"./numeric/is_positive_number.js":{"import":"./esm/numeric/is_positive_number.js","require":"./script/numeric/is_positive_number.js"},"./numeric/is_unit_interval.js":{"import":"./esm/numeric/is_unit_interval.js","require":"./script/numeric/is_unit_interval.js"},"./object/is_async_iterable.js":{"import":"./esm/object/is_async_iterable.js","require":"./script/object/is_async_iterable.js"},"./object/is_iterable.js":{"import":"./esm/object/is_iterable.js","require":"./script/object/is_iterable.js"}},"gitHead":"c583f10455bb4ec0b0d591fc6812fd8bb4519fba","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isNonNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_non_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_non_nullable.ts)\n\nWhether the input is `NonNullable` or not.\n\n```ts\nimport { isNonNullable } from \"https://deno.land/x/isx@$VERSION/is_non_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNullable(\"\"), true);\nassertEquals(isNonNullable(null), false);\nassertEquals(isNonNullable(undefined), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Numeric subtypes\n\nValidates a subtype of `number` or `bigint`.\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isPositiveNumber(1));\nassert(isPositiveNumber(Infinity));\nassertFalse(isPositiveNumber(0));\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonPositiveNumber(0));\nassert(isNonPositiveNumber(-1));\nassertFalse(isNonPositiveNumber(1));\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNegativeNumber(-1));\nassertFalse(isNegativeNumber(0));\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonNegativeNumber(0));\nassert(isNonNegativeNumber(1));\nassertFalse(isNonNegativeNumber(-1));\n```\n\n### isUnitInterval\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_unit_interval.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_unit_interval.ts)\n\nWhether the input is unit interval or not. The unit interval refers to the\ninterval between 0 and 1 on the real number line.\n\n```ts\nimport { isUnitInterval } from \"https://deno.land/x/isx@$VERSION/numeric/is_unit_interval.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isUnitInterval(0));\nassert(isUnitInterval(1.0));\nassertFalse(isUnitInterval(-1));\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_integer.ts)\n\nWhether the input is positive integer or not.\n\n```ts\nimport { isPositiveInteger } from \"https://deno.land/x/isx@$VERSION/number/is_positive_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveInteger(1), true);\nassertEquals(isPositiveInteger(0), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Object subtypes\n\nValidates a subtype of `object`. All validate functions must satisfy ⊂ `object`.\n\n### isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/object/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fobject%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/object/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable({}), false);\n```\n\n### isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/object/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fobject%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/object/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\n[MIT](LICENSE) © 2021 Tomoki Miyauchi\n","readmeFilename":"README.md","_id":"@miyauci/isx@1.5.0-beta.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-erzRnbt2nCzXw3r4LJ4fR9AHBHt8Ky8cwpwpCQtMgDNb+ZN709/htEGyEHVh2jGBH9x/hUP6deK4UOLklruhUg==","shasum":"c3254757bfd1e5192eed7469a32ebd8f2dd704a3","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.5.0-beta.1.tgz","fileCount":161,"unpackedSize":119949,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEpa2KBETA+T1UTxt+ukA6HLfSmG7wbS5uRZ7VExUDpAIhAKFIUaeCnR/U723fqHTPSxsWNMbpIvoPy2wgOr/2zm20"}]},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.5.0-beta.1_1688307221087_0.8463822696384182"},"_hasShrinkwrap":false},"1.5.0":{"name":"@miyauci/isx","version":"1.5.0","description":"Collection of validation functions for JavaScript data","license":"MIT","sideEffects":false,"type":"module","author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"publishConfig":{"access":"public"},"typesVersions":{"*":{"date/is_valid_date.js":["types/date/is_valid_date.d.ts"],"is_array.js":["types/is_array.d.ts"],"is_async_iterable.js":["types/is_async_iterable.d.ts"],"is_bigint.js":["types/is_bigint.d.ts"],"is_boolean.js":["types/is_boolean.d.ts"],"is_date.js":["types/is_date.d.ts"],"is_error.js":["types/is_error.d.ts"],"is_function.js":["types/is_function.d.ts"],"is_iterable.js":["types/is_iterable.d.ts"],"is_non_nullable.js":["types/is_non_nullable.d.ts"],"is_null.js":["types/is_null.d.ts"],"is_nullable.js":["types/is_nullable.d.ts"],"is_number.js":["types/is_number.d.ts"],"is_object.js":["types/is_object.d.ts"],"is_primitive.js":["types/is_primitive.d.ts"],"is_promise.js":["types/is_promise.d.ts"],"is_reg_exp.js":["types/is_reg_exp.d.ts"],"is_string.js":["types/is_string.d.ts"],"is_symbol.js":["types/is_symbol.d.ts"],"is_undefined.js":["types/is_undefined.d.ts"],"iterable/is_empty.js":["types/iterable/is_empty.d.ts"],"iterable/is_not_empty.js":["types/iterable/is_not_empty.d.ts"],"iterable/is_single.js":["types/iterable/is_single.d.ts"],"number/is_even.js":["types/number/is_even.d.ts"],"number/is_negative_number.js":["types/number/is_negative_number.d.ts"],"number/is_non_negative_integer.js":["types/number/is_non_negative_integer.d.ts"],"number/is_non_negative_number.js":["types/number/is_non_negative_number.d.ts"],"number/is_non_positive_number.js":["types/number/is_non_positive_number.d.ts"],"number/is_odd.js":["types/number/is_odd.d.ts"],"number/is_positive_integer.js":["types/number/is_positive_integer.d.ts"],"number/is_positive_number.js":["types/number/is_positive_number.d.ts"],"number/is_unit_interval.js":["types/number/is_unit_interval.d.ts"],"numeric/is_negative_number.js":["types/numeric/is_negative_number.d.ts"],"numeric/is_non_negative_number.js":["types/numeric/is_non_negative_number.d.ts"],"numeric/is_non_positive_number.js":["types/numeric/is_non_positive_number.d.ts"],"numeric/is_positive_number.js":["types/numeric/is_positive_number.d.ts"],"numeric/is_unit_interval.js":["types/numeric/is_unit_interval.d.ts"],"object/is_async_iterable.js":["types/object/is_async_iterable.d.ts"],"object/is_iterable.js":["types/object/is_iterable.d.ts"]}},"exports":{"./date/is_valid_date.js":{"import":"./esm/date/is_valid_date.js","require":"./script/date/is_valid_date.js"},"./is_array.js":{"import":"./esm/is_array.js","require":"./script/is_array.js"},"./is_async_iterable.js":{"import":"./esm/is_async_iterable.js","require":"./script/is_async_iterable.js"},"./is_bigint.js":{"import":"./esm/is_bigint.js","require":"./script/is_bigint.js"},"./is_boolean.js":{"import":"./esm/is_boolean.js","require":"./script/is_boolean.js"},"./is_date.js":{"import":"./esm/is_date.js","require":"./script/is_date.js"},"./is_error.js":{"import":"./esm/is_error.js","require":"./script/is_error.js"},"./is_function.js":{"import":"./esm/is_function.js","require":"./script/is_function.js"},"./is_iterable.js":{"import":"./esm/is_iterable.js","require":"./script/is_iterable.js"},"./is_non_nullable.js":{"import":"./esm/is_non_nullable.js","require":"./script/is_non_nullable.js"},"./is_null.js":{"import":"./esm/is_null.js","require":"./script/is_null.js"},"./is_nullable.js":{"import":"./esm/is_nullable.js","require":"./script/is_nullable.js"},"./is_number.js":{"import":"./esm/is_number.js","require":"./script/is_number.js"},"./is_object.js":{"import":"./esm/is_object.js","require":"./script/is_object.js"},"./is_primitive.js":{"import":"./esm/is_primitive.js","require":"./script/is_primitive.js"},"./is_promise.js":{"import":"./esm/is_promise.js","require":"./script/is_promise.js"},"./is_reg_exp.js":{"import":"./esm/is_reg_exp.js","require":"./script/is_reg_exp.js"},"./is_string.js":{"import":"./esm/is_string.js","require":"./script/is_string.js"},"./is_symbol.js":{"import":"./esm/is_symbol.js","require":"./script/is_symbol.js"},"./is_undefined.js":{"import":"./esm/is_undefined.js","require":"./script/is_undefined.js"},"./iterable/is_empty.js":{"import":"./esm/iterable/is_empty.js","require":"./script/iterable/is_empty.js"},"./iterable/is_not_empty.js":{"import":"./esm/iterable/is_not_empty.js","require":"./script/iterable/is_not_empty.js"},"./iterable/is_single.js":{"import":"./esm/iterable/is_single.js","require":"./script/iterable/is_single.js"},"./number/is_even.js":{"import":"./esm/number/is_even.js","require":"./script/number/is_even.js"},"./number/is_negative_number.js":{"import":"./esm/number/is_negative_number.js","require":"./script/number/is_negative_number.js"},"./number/is_non_negative_integer.js":{"import":"./esm/number/is_non_negative_integer.js","require":"./script/number/is_non_negative_integer.js"},"./number/is_non_negative_number.js":{"import":"./esm/number/is_non_negative_number.js","require":"./script/number/is_non_negative_number.js"},"./number/is_non_positive_number.js":{"import":"./esm/number/is_non_positive_number.js","require":"./script/number/is_non_positive_number.js"},"./number/is_odd.js":{"import":"./esm/number/is_odd.js","require":"./script/number/is_odd.js"},"./number/is_positive_integer.js":{"import":"./esm/number/is_positive_integer.js","require":"./script/number/is_positive_integer.js"},"./number/is_positive_number.js":{"import":"./esm/number/is_positive_number.js","require":"./script/number/is_positive_number.js"},"./number/is_unit_interval.js":{"import":"./esm/number/is_unit_interval.js","require":"./script/number/is_unit_interval.js"},"./numeric/is_negative_number.js":{"import":"./esm/numeric/is_negative_number.js","require":"./script/numeric/is_negative_number.js"},"./numeric/is_non_negative_number.js":{"import":"./esm/numeric/is_non_negative_number.js","require":"./script/numeric/is_non_negative_number.js"},"./numeric/is_non_positive_number.js":{"import":"./esm/numeric/is_non_positive_number.js","require":"./script/numeric/is_non_positive_number.js"},"./numeric/is_positive_number.js":{"import":"./esm/numeric/is_positive_number.js","require":"./script/numeric/is_positive_number.js"},"./numeric/is_unit_interval.js":{"import":"./esm/numeric/is_unit_interval.js","require":"./script/numeric/is_unit_interval.js"},"./object/is_async_iterable.js":{"import":"./esm/object/is_async_iterable.js","require":"./script/object/is_async_iterable.js"},"./object/is_iterable.js":{"import":"./esm/object/is_iterable.js","require":"./script/object/is_iterable.js"}},"gitHead":"0014e5ba0d76f21755abe92804e1e1b8ddd80547","_id":"@miyauci/isx@1.5.0","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-nlPtvUw0Gc0cSk9OE0pg9cChJh9dBZNwCw3Am/Hm94arDVmSHcm57qq+gIjcUG9APLlVJSGyayfe828BmQ0WUg==","shasum":"5542c67df85d503b9df383164bcb892701f9c2a3","tarball":"https://registry.npmjs.org/@miyauci/isx/-/isx-1.5.0.tgz","fileCount":161,"unpackedSize":119942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoX5/YzFsKv0m4JFXdNwW6FLR+XUnTD4tPy5LQTVPH/AiEAgvzHjjNeZUGpS+1ufXfUknq0NsFARKc7TBvMC3/5ha0="}]},"_npmUser":{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"},"directories":{},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isx_1.5.0_1688308417691_0.12724324875584236"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-25T17:46:37.356Z","1.0.0-beta.25":"2023-03-25T17:46:37.650Z","modified":"2023-07-02T14:33:37.987Z","1.0.0-beta.26":"2023-03-26T05:08:09.745Z","1.0.0":"2023-03-26T05:36:44.698Z","1.1.0-beta.1":"2023-03-27T03:02:16.820Z","1.1.0":"2023-03-27T03:11:15.972Z","1.1.1-beta.1":"2023-03-27T13:21:05.376Z","1.1.1":"2023-03-27T13:30:03.121Z","1.2.0-beta.1":"2023-04-11T08:06:43.224Z","1.2.0":"2023-04-11T08:19:18.308Z","1.3.0-beta.1":"2023-04-13T17:01:45.663Z","1.3.0":"2023-04-13T17:06:35.287Z","1.3.1-beta.1":"2023-04-20T16:58:18.149Z","1.3.1":"2023-04-20T17:01:28.981Z","1.4.0-beta.1":"2023-05-31T13:10:25.010Z","1.4.0":"2023-05-31T14:44:10.249Z","1.5.0-beta.1":"2023-07-02T14:13:41.340Z","1.5.0":"2023-07-02T14:33:37.873Z"},"maintainers":[{"name":"miyauci","email":"development.operation.6.6.6@gmail.com"}],"description":"Collection of validation functions for JavaScript data","homepage":"https://github.com/TomokiMiyauci/isx","keywords":["is","validate","validation","utility","collection","type-guard"],"repository":{"type":"git","url":"git+https://github.com/TomokiMiyauci/isx.git"},"author":{"name":"TomokiMiyauci","email":"contact@miyauchi.dev","url":"https://miyauchi.dev/"},"bugs":{"url":"https://github.com/TomokiMiyauci/isx/issues"},"license":"MIT","readme":"# isx\n\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/isx)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/releases)\n[![codecov](https://codecov.io/github/TomokiMiyauci/isx/branch/main/graph/badge.svg)](https://codecov.io/gh/TomokiMiyauci/isx)\n[![GitHub](https://img.shields.io/github/license/TomokiMiyauci/isx)](https://github.com/TomokiMiyauci/isx/blob/main/LICENSE)\n\n[![test](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml/badge.svg)](https://github.com/TomokiMiyauci/isx/actions/workflows/test.yaml)\n[![NPM](https://nodei.co/npm/@miyauci/isx.png?mini=true)](https://nodei.co/npm/@miyauci/isx/)\n\nCollection of validation functions for JavaScript data.\n\nThis is a very small collection of validate functions. It provides a custom type\nguard whenever it can.\n\n## Module structure and capability\n\nModule can be divided into two categories.\n\n- [Top-type module](#top-type-module)\n- [Sub-type module](#sub-type-module)\n\n### Top-type module\n\nTop-type module can accept any JavaScript data. In other words, it accepts the\n`unknown` type, which is top-type.\n\nMost of them can be used to identify the type by a type guard.\n\nThe module directly under namespace is it.\n\n### Sub-type module\n\nSub-type modules are modules that perform type-dependent operations. It can use\ntype-specific methods and compare values.\n\nFor example, the module under `number` is a sub-type module that takes a\n`number` type as an argument.\n\n## isString\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_string.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_string.ts)\n\nWhether the input is `string` or not.\n\n```ts\nimport { isString } from \"https://deno.land/x/isx@$VERSION/is_string.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isString(\"hello world\"), true);\nassertEquals(isString(1000), false);\n```\n\n## isNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_number.ts)\n\nWhether the input is `number` or not.\n\n```ts\nimport { isNumber } from \"https://deno.land/x/isx@$VERSION/is_number.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNumber(1000), true);\nassertEquals(isNumber(\"hello world\"), false);\n```\n\n## isBigint\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_bigint.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_bigint.ts)\n\nWhether the input is `bigint` or not.\n\n```ts\nimport { isBigint } from \"https://deno.land/x/isx@$VERSION/is_bigint.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBigint(1000n), true);\nassertEquals(isBigint(undefined), false);\n```\n\n## isNull\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_null.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_null.ts)\n\nWhether the input is `null` or not.\n\n```ts\nimport { isNull } from \"https://deno.land/x/isx@$VERSION/is_null.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNull(null), true);\nassertEquals(isNull(undefined), false);\n```\n\n## isUndefined\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_undefined.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_undefined.ts)\n\nWhether the input is `undefined` or not.\n\n```ts\nimport { isUndefined } from \"https://deno.land/x/isx@$VERSION/is_undefined.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isUndefined(undefined), true);\nassertEquals(isUndefined(null), false);\n```\n\n## isBoolean\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_boolean.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_boolean.ts)\n\nWhether the input is `boolean` or not.\n\n```ts\nimport { isBoolean } from \"https://deno.land/x/isx@$VERSION/is_boolean.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isBoolean(true), true);\nassertEquals(isBoolean(null), false);\n```\n\n## isFunction\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_function.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_function.ts)\n\nWhether the input is `Function` or not.\n\n```ts\nimport { isFunction } from \"https://deno.land/x/isx@$VERSION/is_function.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isFunction(() => {}), true);\nassertEquals(isFunction({}), false);\n```\n\n## isObject\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_object.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_object.ts)\n\nWhether the input is `object` or not.\n\n```ts\nimport { isObject } from \"https://deno.land/x/isx@$VERSION/is_object.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isObject({}), true);\nassertEquals(isObject(null), false);\n```\n\n## isSymbol\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_symbol.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_symbol.ts)\n\nWhether the input is `symbol` or not.\n\n```ts\nimport { isSymbol } from \"https://deno.land/x/isx@$VERSION/is_symbol.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isSymbol(Symbol(\"symbol\")), true);\nassertEquals(isSymbol(null), false);\n```\n\n## isNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_nullable.ts)\n\nWhether the input is `null` or `undefined` or not.\n\n```ts\nimport { isNullable } from \"https://deno.land/x/isx@$VERSION/is_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNullable(null), true);\nassertEquals(isNullable(undefined), true);\nassertEquals(isNullable({}), false);\n```\n\n## isPrimitive\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_primitive.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_primitive.ts)\n\nWhether the input is `Primitive` or not.\n\n```ts\nimport { isPrimitive } from \"https://deno.land/x/isx@$VERSION/is_primitive.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPrimitive(true), true);\nassertEquals(isPrimitive(() => {}), false);\n```\n\n```ts\ntype Primitive =\n  | number\n  | string\n  | boolean\n  | bigint\n  | undefined\n  | null\n  | symbol;\n```\n\n## isArray\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_array.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_array.ts)\n\nWhether the input is array or not.\n\n_**Use only if input contains `ReadOnlyArray`**_. It improves type inference.\nOtherwise, use `Array.isArray`.\n\nThis exists only because of TypeScript bug\n[#17002](https://github.com/microsoft/TypeScript/issues/17002). When this is\nfixed, this function will no longer be provided.\n\n```ts\nimport { isArray } from \"https://deno.land/x/isx@$VERSION/is_array.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isArray([]), true);\nassertEquals(isArray({}), false);\n```\n\n## isPromise\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_promise.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_promise.ts)\n\nWhether the input is `Promise` or not.\n\n```ts\nimport { isPromise } from \"https://deno.land/x/isx@$VERSION/is_promise.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPromise(Promise.resolve()), true);\nassertEquals(isPromise({}), false);\n```\n\n## isDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_date.ts)\n\nWhether the input is `Date` or not.\n\n```ts\nimport { isDate } from \"https://deno.land/x/isx@$VERSION/is_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isDate(new Date()), true);\nassertEquals(isDate({}), false);\n```\n\n## isError\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_error.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_error.ts)\n\nWhether the input is `Error` or not.\n\n```ts\nimport { isError } from \"https://deno.land/x/isx@$VERSION/is_error.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isError(Error()), true);\nassertEquals(isError(new SyntaxError()), true);\nassertEquals(isError(new Date()), false);\n```\n\n## isNonNullable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_non_nullable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_non_nullable.ts)\n\nWhether the input is `NonNullable` or not.\n\n```ts\nimport { isNonNullable } from \"https://deno.land/x/isx@$VERSION/is_non_nullable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNullable(\"\"), true);\nassertEquals(isNonNullable(null), false);\nassertEquals(isNonNullable(undefined), false);\n```\n\n## isRegExp\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/is_reg_exp.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fis_reg_exp.ts)\n\nWhether the input is `RegExp` of not.\n\n```ts\nimport { isRegExp } from \"https://deno.land/x/isx@$VERSION/is_reg_exp.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isRegExp(new RegExp(\"\")), true);\nassertEquals(isRegExp({}), false);\n```\n\n## Numeric subtypes\n\nValidates a subtype of `number` or `bigint`.\n\n### isPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_positive_number.ts)\n\nWhether the input is positive number or not.\n\n```ts\nimport { isPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isPositiveNumber(1));\nassert(isPositiveNumber(Infinity));\nassertFalse(isPositiveNumber(0));\n```\n\n### isNonPositiveNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_positive_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_positive_number.ts)\n\nWhether the input is non-positive number or not. Non-positive number means less\nthan or equal to zero.\n\n```ts\nimport { isNonPositiveNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_positive_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonPositiveNumber(0));\nassert(isNonPositiveNumber(-1));\nassertFalse(isNonPositiveNumber(1));\n```\n\n### isNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_negative_number.ts)\n\nWhether the input is negative number or not.\n\n```ts\nimport { isNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNegativeNumber(-1));\nassertFalse(isNegativeNumber(0));\n```\n\n### isNonNegativeNumber\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_non_negative_number.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_non_negative_number.ts)\n\nWhether the input is non-negative number or not. Non-negative number means\ngreater than or equal to zero.\n\n```ts\nimport { isNonNegativeNumber } from \"https://deno.land/x/isx@$VERSION/numeric/is_non_negative_number.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isNonNegativeNumber(0));\nassert(isNonNegativeNumber(1));\nassertFalse(isNonNegativeNumber(-1));\n```\n\n### isUnitInterval\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/numeric/is_unit_interval.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumeric%2Fis_unit_interval.ts)\n\nWhether the input is unit interval or not. The unit interval refers to the\ninterval between 0 and 1 on the real number line.\n\n```ts\nimport { isUnitInterval } from \"https://deno.land/x/isx@$VERSION/numeric/is_unit_interval.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\nassert(isUnitInterval(0));\nassert(isUnitInterval(1.0));\nassertFalse(isUnitInterval(-1));\n```\n\n## Number subtypes\n\nValidates a subtype of `number`. All validate functions must satisfy ⊂ `number`.\n\n### isOdd\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_odd.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_odd.ts)\n\nWhether the input is odd or not.\n\n```ts\nimport { isOdd } from \"https://deno.land/x/isx@$VERSION/number/is_odd.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isOdd(1), true);\nassertEquals(isOdd(0), false);\n```\n\n### isEven\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_even.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_even.ts)\n\nWhether the input is even or not.\n\n```ts\nimport { isEven } from \"https://deno.land/x/isx@$VERSION/number/is_even.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isEven(0), true);\nassertEquals(isEven(1), false);\n```\n\n### isPositiveInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_positive_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_positive_integer.ts)\n\nWhether the input is positive integer or not.\n\n```ts\nimport { isPositiveInteger } from \"https://deno.land/x/isx@$VERSION/number/is_positive_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isPositiveInteger(1), true);\nassertEquals(isPositiveInteger(0), false);\n```\n\n### isNonNegativeInteger\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/number/is_non_negative_integer.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fnumber%2Fis_non_negative_integer.ts)\n\nWhether the input is non negative integer or not.\n\n```ts\nimport { isNonNegativeInteger } from \"https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isNonNegativeInteger(0), true);\nassertEquals(isNonNegativeInteger(1.0), true);\nassertEquals(isNonNegativeInteger(-1), false);\n```\n\n## Object subtypes\n\nValidates a subtype of `object`. All validate functions must satisfy ⊂ `object`.\n\n### isAsyncIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/object/is_async_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fobject%2Fis_async_iterable.ts)\n\nWhether the input is `AsyncIterable` or not.\n\n```ts\nimport { isAsyncIterable } from \"https://deno.land/x/isx@$VERSION/object/is_async_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(\n  isAsyncIterable({\n    async *[Symbol.asyncIterator]() {\n      yield \"hello\";\n    },\n  }),\n  true,\n);\nassertEquals(isAsyncIterable({}), false);\n```\n\n### isIterable\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/object/is_iterable.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fobject%2Fis_iterable.ts)\n\nWhether the input is `Iterable` or not.\n\n```ts\nimport { isIterable } from \"https://deno.land/x/isx@$VERSION/object/is_iterable.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isIterable(\"\"), true);\nassertEquals(isIterable({}), false);\n```\n\n## Iterable subtypes\n\nValidates a subtype of `Iterable`. All validate functions must satisfy ⊂\n`Iterable<unknown>`.\n\n### isEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_empty.ts)\n\nWether the input is empty or not.\n\n```ts\nimport { isEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isEmpty(\"\"));\nassert(isEmpty([]));\nassert(isEmpty(new Set()));\n```\n\nstring:\n\nIf the input is a string, it has a `\"\"` type guard.\n\narray:\n\nIf the input is a array, it has a `[]` type guard.\n\n### isNotEmpty\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_non_empty.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_non_empty.ts)\n\nWhether the input is not empty or not.\n\n```ts\nimport { isNotEmpty } from \"https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts\";\nimport { assert } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isNotEmpty(\"a\"));\nassert(isNotEmpty([0, 1]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T, ...T[]]` type guard.\n\n### isSingle\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/iterable/is_single.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fiterable%2Fis_single.ts)\n\nWhether the input is single element or not.\n\n```ts\nimport { isSingle } from \"https://deno.land/x/isx@$VERSION/iterable/is_single.ts\";\nimport { assert, assertFalse } from \"https://deno.land/std/testing/asserts.ts\";\n\nassert(isSingle(\"a\"));\nassert(isSingle([0]));\nassertFalse(isSingle([0, 1, 2]));\n```\n\narray:\n\nIf the input is a `T[]`, it has a `[T]` type guard.\n\n## Date subtypes\n\nValidates a subtype of `Date`. All validate functions must satisfy ⊂ `Date`.\n\n### isValidDate\n\n[![badge](https://deno.bundlejs.com/?q=https://deno.land/x/isx/date/is_valid_date.ts&badge=)](https://bundlejs.com/?q=https%3A%2F%2Fdeno.land%2Fx%2Fisx%2Fdate%2Fis_valid_date.ts)\n\nWhether the input is valid `Date` or not.\n\n```ts\nimport { isValidDate } from \"https://deno.land/x/isx@$VERSION/date/is_valid_date.ts\";\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nassertEquals(isValidDate(new Date(\"2000/1/1\")), true);\nassertEquals(isValidDate(new Date(\"invalid\")), false);\n```\n\n## Bundle size\n\nBundle size is not exact. It is only a guide.\n\nUsually, the actual bundle size is **smaller** than the indicated value.\n\n## Where is mod?\n\nThere is no single entry point such as `mod`.\n\nThis prevents the inclusion of many unnecessary modules.\n\n## License\n\n[MIT](LICENSE) © 2021 Tomoki Miyauchi\n","readmeFilename":"README.md"}