{"id":18277648,"url":"https://github.com/inspect-js/is-typed-array","last_synced_at":"2025-04-05T00:07:28.994Z","repository":{"id":47453257,"uuid":"43528820","full_name":"inspect-js/is-typed-array","owner":"inspect-js","description":"Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.","archived":false,"fork":false,"pushed_at":"2024-12-18T17:19:55.000Z","size":194,"stargazers_count":12,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T23:05:49.749Z","etag":null,"topics":["ecmascript","javascript","typedarray","typedarrays"],"latest_commit_sha":null,"homepage":"","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/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-10-02T00:37:15.000Z","updated_at":"2024-12-18T17:20:00.000Z","dependencies_parsed_at":"2024-03-11T06:27:08.977Z","dependency_job_id":"ef7d1e00-62ee-4c78-b153-9850f7359903","html_url":"https://github.com/inspect-js/is-typed-array","commit_stats":{"total_commits":144,"total_committers":2,"mean_commits":72.0,"dds":0.00694444444444442,"last_synced_commit":"ac4bcca4ee2215662e79aa21681756984bb0b6d1"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-typed-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-typed-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-typed-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-typed-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/is-typed-array/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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":["ecmascript","javascript","typedarray","typedarrays"],"created_at":"2024-11-05T12:19:54.161Z","updated_at":"2025-04-05T00:07:28.972Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":[],"sub_categories":[],"readme":"# is-typed-array \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nIs this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.\n\n## Example\n\n```js\nvar isTypedArray = require('is-typed-array');\nvar assert = require('assert');\n\nassert.equal(false, isTypedArray(undefined));\nassert.equal(false, isTypedArray(null));\nassert.equal(false, isTypedArray(false));\nassert.equal(false, isTypedArray(true));\nassert.equal(false, isTypedArray([]));\nassert.equal(false, isTypedArray({}));\nassert.equal(false, isTypedArray(/a/g));\nassert.equal(false, isTypedArray(new RegExp('a', 'g')));\nassert.equal(false, isTypedArray(new Date()));\nassert.equal(false, isTypedArray(42));\nassert.equal(false, isTypedArray(NaN));\nassert.equal(false, isTypedArray(Infinity));\nassert.equal(false, isTypedArray(new Number(42)));\nassert.equal(false, isTypedArray('foo'));\nassert.equal(false, isTypedArray(Object('foo')));\nassert.equal(false, isTypedArray(function () {}));\nassert.equal(false, isTypedArray(function* () {}));\nassert.equal(false, isTypedArray(x =\u003e x * x));\nassert.equal(false, isTypedArray([]));\n\nassert.ok(isTypedArray(new Int8Array()));\nassert.ok(isTypedArray(new Uint8Array()));\nassert.ok(isTypedArray(new Uint8ClampedArray()));\nassert.ok(isTypedArray(new Int16Array()));\nassert.ok(isTypedArray(new Uint16Array()));\nassert.ok(isTypedArray(new Int32Array()));\nassert.ok(isTypedArray(new Uint32Array()));\nassert.ok(isTypedArray(new Float32Array()));\nassert.ok(isTypedArray(new Float64Array()));\nassert.ok(isTypedArray(new BigInt64Array()));\nassert.ok(isTypedArray(new BigUint64Array()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-typed-array\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-typed-array.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-typed-array.svg\n[deps-url]: https://david-dm.org/inspect-js/is-typed-array\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-typed-array/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-typed-array#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-typed-array.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/is-typed-array.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-typed-array.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-typed-array\n[codecov-image]: https://codecov.io/gh/inspect-js/is-typed-array/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-typed-array/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-typed-array\n[actions-url]: https://github.com/inspect-js/is-typed-array/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-typed-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fis-typed-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-typed-array/lists"}