{"_id":"x-common","_rev":"29-c0b5614a79b822cdd5541a2e63dad7a5","name":"x-common","description":"utilities used by x-x.io x-components","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"x-common","version":"0.0.1","license":"MIT","description":"utilities used by x-x.io x-components","keywords":["x-x","x-component"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","markdox":"~0.1"},"main":"common.js","scripts":{"prepublish":"markdox -o ./README.md ./common.js","test":"vows ./test/*.test.js"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.1","dist":{"shasum":"a4e2f14a4c5c1bcfc6fe091b1b927db0d1875544","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.1.tgz","integrity":"sha512-OOmmHkiITqOphzTjDt8lPZCMVsfd4qoF/tO7AOObZftlkxn1lFMckGi513ux4do2sG7pFje7SQCmqE9fkSq1jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjubfQUzwZDukL840dUkrufpd3WvKSlwg8U1WH39Js0AiEA1wk3C0OCPmh/qjF1IC/xQpRDVsSn5TlkB+ffPBdnE1s="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}]},"0.0.2":{"name":"x-common","version":"0.0.2","license":"MIT","description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0"},"main":"common.js","scripts":{"prepublish":"cat ./common.js | node ./node_modules/dox-basic/bin/dox-basic -m -t \"[![Build Status](https://travis-ci.org/x-component/$npm_package_name.png?v$npm_package_version)](https://travis-ci.org/x-component/$npm_package_name)\" > README.md","test":"vows ./test/*.test.js"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.2","dist":{"shasum":"480a4df6a3c594f29424fba5ff4a54062768e8d9","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.2.tgz","integrity":"sha512-2Z10w0QjdVVuk45zgNYR+aRVQu8ixFMRigIdgPfQkl2wrjmkt4ly5F9P8gJlid1xx4PkFZ+JBM0gZc9Q7Zr2oA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDEEZwbZEWGuRM6DA+3rtoCgs4rNaKlG9Y+LUn2FmBe1AiA7oY6IMpXq8dtIkUmE34mtPbjAP9fpkp+aEun+XapUxw=="}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}]},"0.0.3":{"name":"x-common","version":"0.0.3","license":"MIT","description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0"},"main":"common.js","scripts":{"prepublish":"cat ./common.js | node ./node_modules/dox-basic/bin/dox-basic -m -t \"[![Build Status](https://travis-ci.org/x-component/$npm_package_name.png?v$npm_package_version)](https://travis-ci.org/x-component/$npm_package_name)\" > README.md","test":"vows ./test/*.test.js"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.3","dist":{"shasum":"9e8744de7d55d70e1f4cc30dceed1e50f5badd7c","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.3.tgz","integrity":"sha512-w7aWB5/5xFRZufpD4RNUJxS+L7U4APnHGTeE0E/Bet2I4ineI5FFYkCApi69OCSweQCf3JPvsgdlcWJhYl2B2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEk3vnX0sFgLyh7Js9N0heY2Q3FYIC+RNIut5bZzhiV2AiEAjSA6eX53QBnG/2r3bZXBpP9g0dCtmmxtNTH0J1HJJog="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}]},"0.0.4":{"name":"x-common","version":"0.0.4","license":"MIT","description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0"},"main":"common.js","scripts":{"prepublish":"cat ./common.js | node ./node_modules/dox-basic/bin/dox-basic -m -t \"[![Build Status](https://travis-ci.org/x-component/$npm_package_name.png?v$npm_package_version)](https://travis-ci.org/x-component/$npm_package_name)\" > README.md","test":"vows ./test/*.test.js"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.4","dist":{"shasum":"5eb6e45072721a08938a79d41207fb595263af2e","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.4.tgz","integrity":"sha512-SCdLXtv60LuoazJZT/d2M5icnAW+0rjCKCXmPG6IVLkypJO2KBSszTfWfbSyU7sf1Yx0PecUI//i4n9tbTuOww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDxxXUbn2G/yZ7m6i0j9aydsOKA9kgHKl+nyAaqAUcCAiEAg/cgIrsuFV6AvMCIAVooungzfnFpSmmIPUV2JKAIl/Y="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}]},"0.0.5":{"name":"x-common","version":"0.0.5","license":"MIT","description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0"},"main":"common.js","scripts":{"prepublish":"cat ./common.js | node ./node_modules/dox-basic/bin/dox-basic -m -t \"[![Build Status](https://travis-ci.org/x-component/$npm_package_name.png?v$npm_package_version)](https://travis-ci.org/x-component/$npm_package_name)\" > README.md","test":"vows ./test/*.test.js"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.5","dist":{"shasum":"9da6596975fa638d68c01bb09e0cc9fc643ec182","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.5.tgz","integrity":"sha512-LT3/gq4J4v36V1giy0wOGy1cMXx5Bim09mSi47w7pKSE8SX4K5xx5brgdPuNeIsCVjXSSB3J/rce6vsrIgkZNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd+BFJvwWDWazWiNYoNjsSpEljgTkN/EhVHRlyR1P0pQIhAO7ObcOwDnIOdKg9Y4tXjgPsKWr2SHJgnEqg1PjDbrkd"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}]},"0.0.6":{"name":"x-common","version":"0.0.6","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0","projectz":"~0.3"},"main":"common.js","scripts":{"prepublish":"cat ./common.js | node ./node_modules/dox-basic/bin/dox-basic -m -t \"[![Build Status](https://travis-ci.org/x-component/$npm_package_name.png?v$npm_package_version)](https://travis-ci.org/x-component/$npm_package_name)\" > README.md; node ./node_modules/projectz/bin/projectz compile","test":"vows ./test/*.test.js"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.6","dist":{"shasum":"e917bb8681f3bf2f5adecb61710d9bcc1a9cdd4d","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.6.tgz","integrity":"sha512-YcXWaEH6+ELeJiOrpSJoIZUm1HS4v51bXndjdm2Efm+xuoD6bnew94yqcEga0oodB9wihRI7SAgPCJVBeVNjgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAiFOgiWi12U5JxAV1JTRgIC3PjexJfYeRyuOCueZOqkAiA2e+QCGy/2AZ/dGvyALwJVslKlLiGPxazCYCnJYoTB0A=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"0.0.7":{"name":"x-common","version":"0.0.7","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","dox-basic":"~0.0","projectz":"~0.3"},"main":"common.js","scripts":{"prepublish":"./scripts/prepublish.sh common.js","test":"vows ./test/*.test.js"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.7","dist":{"shasum":"9762fb8842f67a745215d7c223d0cd585aed440d","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.7.tgz","integrity":"sha512-FtTazsRPxc/LBBsAvJTy812QwdOztNmwvmLe1J6ibi7JFOn44wyCjNUvCit1cv5dcN1TBJRyMns0Ks2pAMGzIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkMwVN0DXfLifF2DUDWZZsIGNJVVNFEvSrv5bYgiipAgIhAK9yHONcql5YmqcPNPx4A4lRx8J5F4NGaidmZ70e6+CC"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"0.0.8":{"name":"x-common","version":"0.0.8","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"vows":"~0.7","x-publish":"~0.0"},"main":"common.js","scripts":{"prepublish":"./node_modules/x-publish/prepublish.sh common.js","test":"vows ./test/*.test.js"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.8","dist":{"shasum":"159ae8e6fd55274fad775930503d996675e147ba","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.8.tgz","integrity":"sha512-Gwtl5TZTH2jEu6lAIIcx9ojS1/zXUCcn1htJWtGpGOTkdyWpPRK0Wu6BjK0jrpzOQmOaQq17o7WCfT1yRiy8BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxKA/3P+87cDWJDfSA+2xT/VGTl9Mf7g45HYd74zN1UAiEA2h/wD4KI03le9whzf8lyT5HAIaE1VYqe4KHfZiaJjkg="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"0.0.9":{"name":"x-common","version":"0.0.9","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"x-publish":"~0.0","x-test":"~0.0"},"main":"common.js","scripts":{"prepublish":"./node_modules/x-publish/scripts/prepublish.sh common.js","test":"./node_modules/x-test/scripts/test.sh ./test"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.9","dist":{"shasum":"1e156a277caae7b0780442bf72460d6704d792b0","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.9.tgz","integrity":"sha512-yEhisqzcZG76uouxRjNJgYU21X4FtYu6yr3s39zivp3EraxJTzrgG1qVUq7xchQUZB6WvfzxmQhJytrhwk9F0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDry9FAFpClIr4PWSxjaiR0xb3bdjA167XxVX+nw1NmZAiEA+xqbcI1qb5S+6t9MDxx6v1UMgar8n7CZT64fLIfwc7E="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"0.0.10":{"name":"x-common","version":"0.0.10","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"x-publish":"~0.0","x-test":"~0.0"},"main":"common.js","scripts":{"prepublish":"./node_modules/x-publish/scripts/prepublish.sh common.js","test":"./node_modules/x-test/scripts/test.sh ./test"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"testling":{"harness":"mocha-tdd","files":"test/*.tdd.test.js","browsers":["ie/8..latest","chrome/latest","firefox/latest","iphone/latest","android-browser/latest"]},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.10","dist":{"shasum":"7bdfc66611cd017498d37996d2ec38cb7eab5a84","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.10.tgz","integrity":"sha512-QS94LWdM5pm3WWMgCA8KHHJQ17TuMgSVzZ7P+s3QxDAbp8Cspg13b+mHYKfRRF5a8FLLQZp68a+rdBa7tYmjKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwDHYui3EX1eISu3JTfTf2XGa0TbEdgRAvL24PiS++PQIhAKdRcLFM/xwCIGXUN+krBlI2jhvCjrGgY+0yKGK92UlC"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"0.0.11":{"name":"x-common","version":"0.0.11","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"x-publish":"~0.0","x-test":"~0.0"},"main":"common.js","scripts":{"prepublish":"./node_modules/x-publish/scripts/prepublish.sh common.js","test":"./node_modules/x-test/scripts/test.sh ./test"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"testling":{"harness":"mocha-tdd","files":"test/*.tdd.test.js","browsers":["ie/8..latest","chrome/latest","firefox/latest","iphone/latest","android-browser/latest"]},"homepage":"https://github.com/x-component/x-common","_id":"x-common@0.0.11","dist":{"shasum":"bce6e91d9044fae71be639f12bc46d981021d50f","tarball":"https://registry.npmjs.org/x-common/-/x-common-0.0.11.tgz","integrity":"sha512-j/+GswagNjTHqxn21x5V+GCGehEb+wqGR4ki/jRnzOorog0huPPB3PrI33NNj94uvurBl8lp5dn4j+IAuHAGEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6JPmS0oTpsezM1b7EMPF5O9hV1bfFJF3sN9O9egVyGAiEAtrK3VVg0vift0gLpLS2VUxia/WSXP8iVKOJvv/shoko="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}},"1.0.0":{"name":"x-common","version":"1.0.0","license":{"type":"MIT"},"description":"utilities used by x-x.io x-components","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"devDependencies":{"x-publish":"1.x.x","x-test":"1.x.x"},"browser":"common.js","main":"common.js","scripts":{"prepublish":"$(npm bin)/x-publish","test":"$(npm bin)/x-test ./test"},"author":"","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"contributors":[],"bugs":{"url":"https://github.com/x-component/x-common/issues"},"testling":{"harness":"mocha-tdd","files":"test/*.tdd.test.js","browsers":["ie/latest","chrome/latest","firefox/latest","iphone/latest","android-browser/latest"]},"gitHead":"dfa639752e823c1b1867202084ee8ab1ebe0da88","homepage":"https://github.com/x-component/x-common","_id":"x-common@1.0.0","_shasum":"d975a5fe2b6f6d556b246c13ac6102799d1b0304","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"},"dist":{"shasum":"d975a5fe2b6f6d556b246c13ac6102799d1b0304","tarball":"https://registry.npmjs.org/x-common/-/x-common-1.0.0.tgz","integrity":"sha512-Es3OiN6q+f2qdNMAZ/u+MKbabkEZGOLxFIJqHTICp7+ryNwG8lF4bjzOlJMjv3horM/YXAlF97Awmbfc9uJ+Qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUgewVj+S0/mv+V9GD8pw0beUslwpDxINVn9aCDk78mAiAk5DisLUmn+V9UgSsitvi7Jq6sjIV+gwmfLMRhHZ4nmw=="}]}}},"readme":"# x-common\n\n[Build Status](https://travis-ci.org/x-component/x-common.png?v1.0.0)](https://travis-ci.org/x-component/x-common)\n\n- [./common.js](#commonjs) \n\n# ./common.js\n\n  - [undefined.extend()](#undefinedextendtargetsource_1source_n)\n  - [merge](#merge)\n  - [undefined.isNaN()](#undefinedisnan)\n  - [undefined.flatten()](#undefinedflattenobject)\n\n## undefined.extend(target:, source_1...source_n:)\n\n  extend( target, source_1...source_n )\n  ---------------------\n  \n  Extends a target object with properties from multiple source objects.\n  Properties from source objects are added in the given order.\n  Existing properties are overwritten.\n  Note: Property values like objects and arrays are not cloned or copied.\n  \n  *example*:\n  \n```js\n  t={a:1,b:2};\n  s1={c:{y:'z'}};\n  s2={d:3};\n  r=extend(t,s1,s2,{e:4}); // => r is now { a:1,b:2,c:{y:'z'},d:3,e:4}\n  r.a=5; // => t.a====5  is now also 5, as t i target\n  r.d=6; // => s2.d====3, number is not an object and copied\n  r.c.y='zz'; // ==> s1.y===='zz' is now also 'zz', as both point to the same object\n```\n\n  \n  when using\n  \n```js\n  extend(t,s1,s2,{e:4},true);\n```\n\n  \n  then\n  \n```js\n  r.c.y='zz'; // s1.y===='z'\n```\n\n  \n  you can use this to add properties to any object like functions or to an options object\n\n## merge\n\n  merge( target, source_1...source_n )\n  ---------------------\n  \n  Merges multiple nested object structures into a single target object structure.\n  It handles all enumaratable properties recursively.\n  \n  - Arrays/objects from the sources are copied by a deep copy.\n  - `null` as a source property sets target obect/array/function property to `null`.\n  - Array like objects like `arguments` and dom lists are transformed into real arrays\n  - Arrays of sources are concatenated to target arrays\n  - Primitives and functions are added to arrays\n  - Object properties are merged as properties added to arrays. \n```js\nSo you can not add an object directly into an array, you have to use [] arround it\nFor the same reason you can not add null direclty into an array you must use [null]\n```\n\n  \n  - Functions from sources can define or replace target functions\n  - Functions from sources can not be merged/copied into a target objects,array, or primitives, they switch roles with the target.\n  - Thus merging for functions has side effects!\n  - Source objects properties can be merged into functions\n  \n  - Arrays and primitives can not be merged into function, the source becomes an object with a single value before merging.\n  - Arrays and objects can not be merged into target primitives,\n```js\nthe target becomes an array or obect with a single value before merging.\n```\n\n  \n  To delete a property in a merge you can use a sepcial object as source: merge.remove\n\n## undefined.isNaN()\n\n  isNaN(value)\n  -----------\n  replacement for Number.isNaN as long as not all support this\n\n## undefined.flatten(object:)\n\n  flatten( object )\n  ---------\n  \n  Flattens a nested object hierarchy to an single object with just non object values\n  \n  *example*:\n  \n```js\n  flatten({a:{n:1,m:2},b:['x',{'y':'z'}],c:3})\n```\n\n  \n   result:\n  \n```js\n  {'a.n':1,'a.m':2,'b[0]':'x','b[1].y':'z',c:3}\n```\n\n  \n  recursive structures can not be flattened because paths would be endless\n","maintainers":[{"name":"maurice-schoenmakers","email":"maurice.schoenmakers@x-x.io"}],"time":{"modified":"2022-06-29T04:32:29.867Z","created":"2014-02-19T14:08:16.765Z","0.0.1":"2014-02-19T14:08:16.765Z","0.0.2":"2014-03-02T18:36:38.743Z","0.0.3":"2014-03-12T12:11:19.333Z","0.0.4":"2014-03-15T12:40:54.723Z","0.0.5":"2014-03-18T04:31:52.024Z","0.0.6":"2014-03-26T07:00:53.008Z","0.0.7":"2014-03-29T19:02:32.623Z","0.0.8":"2014-03-29T19:38:50.780Z","0.0.9":"2014-03-30T15:37:57.731Z","0.0.10":"2014-03-30T19:01:59.230Z","0.0.11":"2014-03-30T22:17:38.552Z","1.0.0":"2015-11-17T11:44:19.722Z"},"readmeFilename":"README.md","homepage":"https://github.com/x-component/x-common","keywords":["x-x","x-component","merge","extend"],"repository":{"type":"git","url":"https://github.com/x-component/x-common.git"},"bugs":{"url":"https://github.com/x-component/x-common/issues"},"license":{"type":"MIT"},"users":{},"contributors":[]}