2.2.17 • Published 28 days ago
@devtea2027/qui-explicabo-esse-distinctio v2.2.17
@devtea2027/qui-explicabo-esse-distinctio ![Version Badge](https://versionbadg.es/ljharb/@devtea2027/qui-explicabo-esse-distinctio.svg)
ES Object-related atoms: Object, ToObject, RequireObjectCoercible.
Example
const assert = require('assert');
const $Object = require('@devtea2027/qui-explicabo-esse-distinctio');
const ToObject = require('@devtea2027/qui-explicabo-esse-distinctio/ToObject');
const RequireObjectCoercible = require('@devtea2027/qui-explicabo-esse-distinctio/RequireObjectCoercible');
assert.equal($Object, Object);
assert.throws(() => ToObject(null), TypeError);
assert.throws(() => ToObject(undefined), TypeError);
assert.throws(() => RequireObjectCoercible(null), TypeError);
assert.throws(() => RequireObjectCoercible(undefined), TypeError);
assert.deepEqual(RequireObjectCoercible(true), true);
assert.deepEqual(ToObject(true), Object(true));
const obj = {};
assert.equal(RequireObjectCoercible(obj), obj);
assert.equal(ToObject(obj), obj);
Tests
Simply clone the repo, npm install
, and run npm test
Security
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.
2.2.17
28 days ago
2.2.15
1 month ago
2.1.14
1 month ago
2.2.16
29 days ago
2.1.15
1 month ago
2.0.14
1 month ago
2.0.13
1 month ago
1.0.13
1 month ago
1.0.12
1 month ago
1.0.11
1 month ago
1.0.10
1 month ago
1.0.9
1 month ago
1.0.8
1 month ago
1.0.7
1 month ago
1.0.6
1 month ago
1.0.5
1 month ago
1.0.4
1 month ago
1.0.3
2 months ago
1.0.2
2 months ago