{"_id":"@_agco/types","_rev":"1-3e16d924c32e1d0369aa449686603499","name":"@_agco/types","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@_agco/types","version":"1.0.1","description":"a tiny type checking library","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://bitbucket.org/_agco/types.js.git"},"authors":[{"name":"Ajay Gupta","email":"hi@ajaygupta.co","url":"https://ajaygupta.co"}],"scripts":{"release":"grunt"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","grunt":"^1.0.3","grunt-babel":"^8.0.0","jshint":"^2.9.7","load-grunt-tasks":"^4.0.0"},"keywords":["types","data-types","type-checking"],"publishConfig":{"access":"public"},"gitHead":"aeef789a2ecd68fab7b407c6a0b6c96b8e69f629","homepage":"https://bitbucket.org/_agco/types.js#readme","_id":"@_agco/types@1.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-v7J9Jfjvam8s302DCfA8P6pKe7mZXAUpQ+epQ/qVsoioBitus2CkuC7ZZocyyUJAqX5WDji6Rdm1MvGaaZh24A==","shasum":"db92037d6ab859f4885b5907af52d95bac5d2dc2","tarball":"https://registry.npmjs.org/@_agco/types/-/types-1.0.1.tgz","fileCount":5,"unpackedSize":7665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXvPCCRA9TVsSAnZWagAAvr0P/jzcmIiSjjFn8fl3BIRE\nX23nfSF3klOQpzyh31TsLrNbqAVyFa8+u318KK7zS8D5VfODeYaS1UJUANDf\n1FNrYUZQuFyvVO1Ulw3632OYz8f3PUhqlebBQJc3jWV3CfuoBM5UbW1pnOxW\ngSIcmfdQmLlsCSs9aShfqgpLPXXEOi/HBiybS3A7uoP6CAzougAk3g5WxZaP\ndppPdcGozNyQdWPiQIR6iG9g/AMVOoDputgZMKrDaUYjLnaU0Z0wSSId8F5M\nvlSK7u+4V2WSGvTJNfmQtQ2Ghzv+TjAF/MEX5yxWiS9g8LenoE0eSWwIVwRr\n1NbbrOhYiiY8rwj/Nc9LblQbQjWRCeYf7g7wL8E18J3+qrbeNev0SEADU6U9\nQ9iJaDNqfTX1UzfkhNjfQpY+CC7MQFi3opucn96Aj/PjyuH6ObAawLB22dxM\njtcfziHlZUflgY/avNCvyV8WwGaqhXITJVTrMUJrLHl8x161zxmucwrvEGHb\nKqlneCMH0sGegFPBnbT5045ppyVG29FayMreXmxSLoI5bKIEf9kcGmIto/9r\nah8JdYY6irLQQD/u56Bp7umr6vAAeb92yE4bKWgek8DHM02y6FZ4ONGrmcde\n+iyNHCZQbisnQZcDcva6+6zt9Cm588yTWc5MdeultGQQqvBtJ6upFjl+/5pS\nv0oi\r\n=o+Bp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDitqvh0OAfG+M+G3LhSxM/8zFZ7MAtwlpxGrWm1ky+vgIgMNHC2HQfw8UShIggnlrEJC4qe/CT6NGiT7ogfYhnuEw="}]},"maintainers":[{"name":"_ajaygupta","email":"hi@ajaygupta.co"}],"_npmUser":{"name":"_ajaygupta","email":"hi@ajaygupta.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_1.0.1_1566503873595_0.8361174533821576"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-22T19:57:53.371Z","1.0.1":"2019-08-22T19:57:53.750Z","modified":"2022-04-04T10:51:25.824Z"},"maintainers":[{"name":"_ajaygupta","email":"hi@ajaygupta.co"}],"description":"a tiny type checking library","homepage":"https://bitbucket.org/_agco/types.js#readme","keywords":["types","data-types","type-checking"],"repository":{"type":"git","url":"git+https://bitbucket.org/_agco/types.js.git"},"license":"MIT","readme":"# types.js\n\nA tiny type checking library written in JavaScript.\n\n## Usage\n\nThe library exposes different APIs for checking data types. Each of the APIs accept only one parameter and returns a boolean value.\n\n---\n\n### isArray(value: any)\n\nChecks if the provided value is an Array.\n\n```js\nconst Result = Types.isArray([]);\n```\n\n### isBoolean(value: any)\n\nChecks if the provided value is a boolean.\n\n```js\nconst Result = Types.isBoolean(true);\n```\n\n### isFunction(value: any)\n\nChecks if the provided value is a function.\n\n```js\nconst Result = Types.isFunction(() => undefined);\n```\n\n### isNumber(value: any)\n\nChecks if the provided value is a number.\n\n```js\nconst Result = Types.isNumber(123);\n```\n\n### isObject(value: any)\n\nChecks if the provided value is an object (including arrays).\n\n```js\nconst Result = Types.isObject({});\n```\n\n### isString(value: any)\n\nChecks if the provided value is a string.\n\n```js\nconst Result = Types.isString(123);\n```\n\n### isSymbol(value: any)\n\nChecks if the provided value is a symbol.\n\n```js\nconst Result = Types.isSymbol(Symbol(1));\n```\n\n### isUndefined(value: any)\n\nChecks if the provided value is of type undefined.\n\n```js\nconst Result = Types.isUndefined(undefined);\n```\n","readmeFilename":"README.md"}