MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / toPlainObject

Function toPlainObject

lib/web/jshint.js:10503–10505  ·  view source on GitHub ↗

* Converts `value` to a plain object flattening inherited enumerable * properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain o

(value)

Source from the content-addressed store, hash-verified

10501 * // => { 'a': 1, 'b': 2, 'c': 3 }
10502 */
10503 function toPlainObject(value) {
10504 return baseCopy(value, keysIn(value));
10505 }
10506
10507 /*------------------------------------------------------------------------*/
10508

Callers 1

baseMergeDeepFunction · 0.85

Calls 2

baseCopyFunction · 0.85
keysInFunction · 0.85

Tested by

no test coverage detected