MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / isObject

Function isObject

benchmark/data.js:187–189  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

185}
186const toString = Object.prototype.toString;
187function isObject(thing) {
188 return toString.call(thing) === '[object Object]';
189}
190function getLocator(source) {
191 const originalLines = source.split('\n');
192 const lineOffsets = [];

Callers 2

indentMethod · 0.70
addSourceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected