Skip to content
@inspect-js

Inspect JS

JavaScript value inspection tools.

inspect-js

This github and npm organization houses JavaScript projects that help you look at stuff.

Predicates

Functions that ask a question and produce a yes or no answer (`true` or `false`).
  • is-arguments - github - npm - Is this an arguments object? It's a harder question than you think.
  • is-arrow-function - github - npm - Determine if a function is an ES6 arrow function or not.
  • is-async-function - github - npm - Determine if a function is a native async function.
  • is-bigint - github - npm - Is this value an ES BigInt?
  • is-boolean-object - github - npm - Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-boxed-primitive - github - npm - Is this value a boxed primitive? Shim for node's util.isBoxedPrimitive.
  • is-callable - github - npm - Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
  • is-core-module - github - npm - Is this specifier a node.js core module?
  • is-date-object - github - npm - Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-finalizationregistry - github - npm - Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-generator-function - github - npm - Determine if a function is a native generator function.
  • is-map - github - npm - Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-negative-zero - github - npm - Is this value negative zero? === will lie to you
  • is-number-object - github - npm - Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-object - github - npm - Checks whether a value is an object
  • is-regex - github - npm - Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
  • is-registered-symbol - github - npm - Is this value a Symbol stored in the global cross-realm Symbol registry?
  • is-set - github - npm - Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-shared-array-buffer - github - npm - Is this value a JS SharedArrayBuffer?
  • is-string - github - npm - Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-symbol - github - npm - Determine if a value is an ES6 Symbol or not.
  • is-typed-array - github - npm - 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.
  • is-weakmap - github - npm - Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-weakref - github - npm - Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-weakset - github - npm - Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-well-known-symbol - github - npm - Is this value a well-known Symbol?

Comparisons

Packages that compare two things.
  • is-equal - github - npm - Are these two values conceptually equal?
  • deep-equal - github - npm - node's assert.deepEqual algorithm

Environment

Packages that tell you about the JS env.
  • available-regexp-flags - github - npm - Which regular expression flags does the current environment support?
  • available-typed-arrays - github - npm - Returns an array of Typed Array names that are available in the current environment
  • functions-have-names - github - npm - Does this JS environment support the name property on functions?
  • has-bigints - github - npm - Determine if the JS environment has BigInt support.
  • has-dynamic-import - github - npm - Does the current environment have import() support?
  • has-object-spread - github - npm - check if the environment supports { ...a } spread syntax
  • has-optional-chaining - github - npm - Determine if the JS environment has optional chaining support
  • has-package-exports - github - npm - Does the current node version have support for the "exports" field in package.json?
  • has-package-imports - github - npm - Does the current node version have support for the "imports" field in package.json?
  • has-package-self-reference - github - npm - Does the current node version have support for requiring/importing its own name?
  • has-private-fields - github - npm - Determine if the JS environment has private fields (class { #x; }) support.
  • has-property-descriptors - github - npm - Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
  • has-strict-mode - github - npm - Does the current JS environment have strict mode? ES5+ should; but let's not assume.
  • has-symbols - github - npm - Determine if the JS environment has Symbol support. Supports spec, or shams.
  • has-template-literals - github - npm - Determine if the JS environment has template literal support.
  • has-tostringtag - github - npm - Determine if the JS environment has Symbol.toStringTag support. Supports spec, or shams.
  • has-typed-arrays - github - npm - Does this environment have JS Typed Arrays?
  • node-exports-info - github - npm - Info about node exports field support: version ranges, categories, etc.
  • supports-preserve-symlinks-flag - github - npm - Determine if the current node version supports the --preserve-symlinks flag.

Describe

Packages that tell you about a specific JS value.
  • get-symbol-description - github - npm - Gets the description of a Symbol. Handles Symbol() vs Symbol('') properly when possible.
  • object-inspect - github - npm - string representations of objects in node and the browser
  • typed-array-length - github - npm - Robustly get the length of a Typed Array
  • which-boxed-primitive - github - npm - Which kind of boxed JS primitive is this?
  • which-builtin-type - github - npm - What is the type of this builtin JS value?
  • which-collection - github - npm - Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.
  • which-typed-array - github - npm - Which kind of Typed Array is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Pinned

  1. node's assert.deepEqual algorithm

    JavaScript 681 108

  2. string representations of objects in node and the browser

    JavaScript 114 25

  3. is-callable Public

    Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.

    JavaScript 35 11

  4. is-equal Public

    Are these two values conceptually equal?

    JavaScript 57 5

  5. Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.

    JavaScript 9 4

  6. Which kind of boxed JS primitive is this?

    JavaScript 6 1

Repositories

  • which-typed-array Public

    Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.

    JavaScript 9 MIT 4 1 0 Updated May 14, 2022
  • is-typed-array Public

    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.

    JavaScript 10 MIT 5 1 0 Updated May 14, 2022
  • .github Public template

    .github repo for inspect-js org

    JavaScript 0 MIT 1 0 0 Updated Apr 25, 2022
  • is-well-known-symbol Public

    Is this value a well-known Symbol?

    JavaScript 0 MIT 0 1 0 Updated Apr 25, 2022
  • is-registered-symbol Public

    Is this value a Symbol stored in the global cross-realm Symbol registry?

    JavaScript 0 MIT 0 1 0 Updated Apr 25, 2022
  • has-bigints Public

    Determine if the JS environment has BigInt support.

    JavaScript 6 MIT 2 1 0 Updated Apr 19, 2022
  • functions-have-names Public

    Does this JS environment support the `name` property on functions?

    JavaScript 6 MIT 0 1 0 Updated Apr 19, 2022
  • is-core-module Public

    Is this specifier a node.js core module?

    JavaScript 10 MIT 6 1 0 Updated Apr 19, 2022
  • object-inspect Public

    string representations of objects in node and the browser

    JavaScript 114 MIT 25 2 2 Updated Apr 16, 2022
  • has-property-descriptors Public

    Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.

    JavaScript 0 MIT 0 1 0 Updated Apr 15, 2022

Top languages

Loading…

Most used topics

Loading…