mirror-rhinstaller-node-cache/is-document.all
2026-07-21 13:39:22 +00:00
..
test 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
.nycrc 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
CHANGELOG.md 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
eslint.config.mjs 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
index.d.ts 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
index.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
LICENSE 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
package.json 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
README.md 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00
tsconfig.json 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-21 13:39:22 +00:00

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