MCPcopy
hub / github.com/JedWatson/classnames / _parseObject

Function _parseObject

dedupe.js:31–44  ·  view source on GitHub ↗
(resultSet, object)

Source from the content-addressed store, hash-verified

29 }
30
31 function _parseObject (resultSet, object) {
32 if (object.toString !== Object.prototype.toString && !object.toString.toString().includes('[native code]')) {
33 resultSet[object.toString()] = true;
34 return;
35 }
36
37 for (var k in object) {
38 if (hasOwn.call(object, k)) {
39 // set value to false instead of deleting it to avoid changing object structure
40 // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions
41 resultSet[k] = !!object[k];
42 }
43 }
44 }
45
46 var SPACE = /\s+/;
47 function _parseString (resultSet, str) {

Callers 1

_parseFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…