npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

is-document.all

1.0.0

@ljharb

npmHomeRepoSnykSocket
Downloads:50319287
$ npm install is-document.all
DailyWeeklyMonthlyYearly

is-document.all Version Badge

github actions coverage License Downloads

npm badge

Is this value document.all, i.e. an object with the [[IsHTMLDDA]] internal slot?

Example

var isDocumentAll = require('is-document.all');
var assert = require('assert');

assert(!isDocumentAll(undefined));
assert(!isDocumentAll(null));
assert(!isDocumentAll({}));
assert(!isDocumentAll(function () {}));

// in a browser:
assert(isDocumentAll(document.all));

Tests

Simply clone the repo, npm install, and run npm test