zioinfo-mail/workspace/guardia-manager/frontend/node_modules/es-object-atoms
DESKTOP-TKLFCPR\ython cfe2901a55 refactor(structure): consolidate all projects under workspace/
- itsm/    -> workspace/guardia-itsm/
- manager/ -> workspace/guardia-manager/
- app/     -> workspace/guardia-messenger/
- manual/  -> workspace/guardia-docs/

workspace/zioinfo-web/ unchanged.
git mv preserves full commit history.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 23:50:56 +09:00
..
.github refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
test refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
.eslintrc refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
CHANGELOG.md refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
index.d.ts refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
index.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
isObject.d.ts refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
isObject.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
LICENSE refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
package.json refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
README.md refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
RequireObjectCoercible.d.ts refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
RequireObjectCoercible.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
ToObject.d.ts refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
ToObject.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
tsconfig.json refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00

es-object-atoms Version Badge

github actions coverage License Downloads

npm badge

ES Object-related atoms: Object, ToObject, RequireObjectCoercible.

Example

const assert = require('assert');

const $Object = require('es-object-atoms');
const isObject = require('es-object-atoms/isObject');
const ToObject = require('es-object-atoms/ToObject');
const RequireObjectCoercible = require('es-object-atoms/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.equal(isObject(undefined), false);
assert.equal(isObject(null), false);
assert.equal(isObject({}), true);
assert.equal(isObject([]), true);
assert.equal(isObject(function () {}), true);

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.