{"id":16939261,"url":"https://github.com/a8m/obj-is","last_synced_at":"2026-05-17T06:31:30.359Z","repository":{"id":24640060,"uuid":"28049437","full_name":"a8m/obj-is","owner":"a8m","description":"is-function's creator","archived":false,"fork":false,"pushed_at":"2014-12-15T18:46:49.000Z","size":260,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-09T04:15:46.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a8m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-15T18:11:37.000Z","updated_at":"2014-12-26T08:07:56.000Z","dependencies_parsed_at":"2022-08-23T04:40:49.303Z","dependency_job_id":null,"html_url":"https://github.com/a8m/obj-is","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fobj-is","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fobj-is/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fobj-is/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fobj-is/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/obj-is/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244517114,"owners_count":20465203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:04:09.877Z","updated_at":"2025-10-27T15:46:00.845Z","avatar_url":"https://github.com/a8m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#obj-is\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\u003e is-function's creator\n\n## Install\n```sh\n$ npm install --save obj-is\n```\n\n##Usage\n####`is(constructor, inherit[boolean])`\n```js\nvar is = require('obj-is');\n\n// Person Constructor\nfunction Person(name) {\n  this.name = name;\n}\n\n// Create `isPerson` function\nvar isPerson = is(Person);\nisPerson(new Person('foo')); // → true\nisPerson({});                // → false\n\n// if inherit set to true its test with the `instanceof` operator\nvar isObject = is(Object, true);\nisObject(new Person('bar')); // → true\n```\n\n##Table of contents:\n- [is](#is)\n- [static functions](#statismethods)\n  - [is.array](#isarray)\n  - [is.date](#isdate)\n  - [is.defined](#isdefined)\n  - [is.undefined](#isundefined)\n  - [is.function](#isfunction)\n  - [is.integer](#isinteger)\n  - [is.object](#isobject)\n  - [is.number](#isnumber)\n  - [is.promise](#ispromise)\n  - [is.string](#isstring)\n\n## License\n\nMIT © [Ariel Mashraki](https://github.com/a8m)\n[npm-image]: https://img.shields.io/npm/v/obj-is.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/obj-is\n[travis-image]: https://img.shields.io/travis/a8m/obj-is.svg?style=flat-square\n[travis-url]: https://travis-ci.org/a8m/obj-is\n[coveralls-image]: https://img.shields.io/coveralls/a8m/obj-is.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/a8m/obj-is\n[david-image]: http://img.shields.io/david/a8m/obj-is.svg?style=flat-square\n[david-url]: https://david-dm.org/a8m/obj-is\n[license-image]: http://img.shields.io/npm/l/obj-is.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/obj-is.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/obj-is\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fobj-is","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Fobj-is","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fobj-is/lists"}