MCPcopy
hub / github.com/josdejong/mathjs / isObject

Function isObject

src/utils/is.js:122–128  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

120}
121
122export function isObject (x) {
123 return !!(x &&
124 typeof x === 'object' &&
125 x.constructor === Object &&
126 !isComplex(x) &&
127 !isFraction(x))
128}
129
130/**
131 * Returns `true` if the passed object appears to be a Map (i.e. duck typing).

Callers 9

is.test.jsFile · 0.90
cloneFunction · 0.90
normalizeFormatOptionsFunction · 0.90
createMapFunction · 0.90
assignFunction · 0.90
flattenImportsFunction · 0.90
mainNumber.test.jsFile · 0.85
mainAny.test.jsFile · 0.85
isObjectWrappingMapFunction · 0.85

Calls 2

isComplexFunction · 0.85
isFractionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…