{"_id":"@agostone/lodash-deeps","_rev":"10-3c299bfe0b99811d7b0896d89152a079","name":"@agostone/lodash-deeps","time":{"modified":"2022-06-12T14:22:54.084Z","created":"2018-01-28T11:56:14.758Z","0.1.0":"2018-01-28T11:56:14.758Z","0.1.1":"2018-01-28T12:48:36.627Z","0.2.0":"2018-01-31T20:40:52.191Z","0.2.1":"2018-02-02T09:55:57.495Z","0.3.0":"2018-02-09T16:39:44.172Z"},"maintainers":[{"email":"agostone@gmail.com","name":"agostone"}],"dist-tags":{"latest":"0.3.0"},"versions":{"0.1.1":{"name":"@agostone/lodash-deeps","version":"0.1.1","description":"Lodash deep mixin pairs for functions that had none.","main":"src/index.js","directories":{"lib":"src","test":"tests"},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"eslint":"^4.16.0","eslint-config-es6":"^1.10.3","eslint-config-loopback":"^10.0.0","eslint-plugin-import":"^2.8.0","gulp":"^3.9.1","gulp-eslint":"^4.0.2","gulp-jasmine":"^3.0.0","gulp-rename":"~1.2.0","gulp-uglify":"~1.0.1","gulp-webpack":"^1.5.0","jasmine":"^2.9.0","karma":"0.13.21","karma-chrome-launcher":"0.2.2","karma-jasmine":"^1.1.1","karma-sauce-launcher":"0.3.1","uglifyjs-webpack-plugin":"^1.1.6"},"engines":{"node":">=8.9","npm":">=5.5"},"scripts":{"test":"gulp test","lint":"gulp lint","build":"gulp build"},"repository":{"type":"git","url":"git+https://github.com/agostone/lodash-deeps.git"},"keywords":["lodash","mixin","mixins","deep"],"author":{"name":"Agoston Nagy"},"license":"MIT","bugs":{"url":"https://github.com/agostone/lodash-deeps/issues"},"homepage":"https://github.com/agostone/lodash-deep","gitHead":"055c54dd2f728b455d9b378541e87994c8f456ea","_id":"@agostone/lodash-deeps@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"agostone","email":"agostone@gmail.com"},"dist":{"integrity":"sha512-jrvqgv77dsYbah9x+byG0gEXp3Ipn3BK0GqCPjdjxhr88hjU9pYidpq/AaZsvD2fqNt3s8T6IbDtxrC/m96n8A==","shasum":"e376d61913eba0d213ec025ae7664499b02d5e32","tarball":"https://registry.npmjs.org/@agostone/lodash-deeps/-/lodash-deeps-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICsf6x/kJA/Q0b0sD1sJD6BZbPjiz59h4Y6mAel2vMn2AiA7l3F2Mfe5aZkU5VE7cnkUQ0BAziNNRoFRMHRknqQT4w=="}]},"maintainers":[{"email":"agostone@gmail.com","name":"agostone"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodash-deeps-0.1.1.tgz_1517143716476_0.17539566312916577"}},"0.2.0":{"name":"@agostone/lodash-deeps","version":"0.2.0","description":"Lodash deep mixin pairs for functions that had none.","main":"src/index.js","directories":{"lib":"src","test":"tests"},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"eslint":"^4.16.0","eslint-config-es6":"^1.10.3","eslint-config-loopback":"^10.0.0","eslint-plugin-import":"^2.8.0","gulp":"^3.9.1","gulp-eslint":"^4.0.2","gulp-jasmine":"^3.0.0","gulp-rename":"~1.2.0","gulp-uglify":"~1.0.1","gulp-webpack":"^1.5.0","jasmine":"^2.9.0","karma":"0.13.21","karma-chrome-launcher":"0.2.2","karma-jasmine":"^1.1.1","karma-sauce-launcher":"0.3.1","uglifyjs-webpack-plugin":"^1.1.6"},"engines":{"node":">=8.9","npm":">=5.5"},"scripts":{"test":"gulp test","lint":"gulp lint","build":"gulp build"},"repository":{"type":"git","url":"git+https://github.com/agostone/lodash-deeps.git"},"keywords":["lodash","mixin","mixins","deep"],"author":{"name":"Agoston Nagy"},"license":"MIT","bugs":{"url":"https://github.com/agostone/lodash-deeps/issues"},"homepage":"https://github.com/agostone/lodash-deep","gitHead":"fcd9e70f52ffe57022d1ac82bc25304bcd5af4cc","_id":"@agostone/lodash-deeps@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"agostone","email":"agostone@gmail.com"},"dist":{"integrity":"sha512-cIiP5pJ06aIWSjk+TBWh1zJUu5oVUU4CkP85inKpKolnuFEAka/KihV8d9SR9zKxwV58gfUo0flP+RXyER+p2g==","shasum":"7da156c47d4821fe2b053c57823d4e942adb2bb6","tarball":"https://registry.npmjs.org/@agostone/lodash-deeps/-/lodash-deeps-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW7o/lQZQwVL8+EFFfTWkVZ2Idu13qjMKGbJwNVAGS/QIhAJuICmKZaKt6jwSIsFsQa+/CZYQIUIIuS1tBhAnxGH12"}]},"maintainers":[{"email":"agostone@gmail.com","name":"agostone"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodash-deeps-0.2.0.tgz_1517431252068_0.20460932655259967"}},"0.2.1":{"name":"@agostone/lodash-deeps","version":"0.2.1","description":"Lodash deep mixin pairs for functions that has none.","main":"src/index.js","directories":{"lib":"src","test":"tests"},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"benchmark":"^2.1.4","eslint":"^4.16.0","eslint-config-es6":"^1.10.3","eslint-config-loopback":"^10.0.0","eslint-plugin-import":"^2.8.0","gulp":"^3.9.1","gulp-eslint":"^4.0.2","gulp-jasmine":"^3.0.0","gulp-rename":"~1.2.0","gulp-uglify":"~1.0.1","gulp-webpack":"^1.5.0","jasmine":"^2.9.0","karma":"0.13.21","karma-chrome-launcher":"0.2.2","karma-jasmine":"^1.1.1","karma-sauce-launcher":"0.3.1","uglifyjs-webpack-plugin":"^1.1.6"},"engines":{"node":">=8.9","npm":">=5.5"},"scripts":{"test":"gulp test","lint":"gulp lint","build":"gulp build"},"repository":{"type":"git","url":"git+https://github.com/agostone/lodash-deeps.git"},"keywords":["lodash","mixin","mixins","deep"],"author":{"name":"Agoston Nagy"},"license":"MIT","bugs":{"url":"https://github.com/agostone/lodash-deeps/issues"},"homepage":"https://github.com/agostone/lodash-deep","gitHead":"7d92450ab0f2d68cfcc527c76d81abd6d757aedd","_id":"@agostone/lodash-deeps@0.2.1","_shasum":"a5fd3fc8b7800a47face89b620e83e7783c8a412","_from":".","_npmVersion":"4.3.0","_nodeVersion":"8.9.3","_npmUser":{"name":"agostone","email":"agostone@gmail.com"},"dist":{"shasum":"a5fd3fc8b7800a47face89b620e83e7783c8a412","tarball":"https://registry.npmjs.org/@agostone/lodash-deeps/-/lodash-deeps-0.2.1.tgz","integrity":"sha512-ytHH5eV0bxsb8yxM1k8GBUE7OVx3XnTr55z1knqmYgJJREYETS0czy5hs35/l8pKpdoyPEQ1h7Oodrw1PbVoNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6GQTY+lGt1QoElC0KdG5bohRI2iBHZJ5Ke722bUjwoAiB7LxWIb4bvq0iygFjCUkedYZ6bqJI1Ad/Ns3Q6wpU9SQ=="}]},"maintainers":[{"email":"agostone@gmail.com","name":"agostone"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodash-deeps-0.2.1.tgz_1517565356494_0.899672428611666"}},"0.3.0":{"name":"@agostone/lodash-deeps","version":"0.3.0","description":"Lodash deep mixin pairs for functions that has none.","main":"src/index.js","directories":{"lib":"src","test":"tests"},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"benchmark":"^2.1.4","eslint":"^4.16.0","eslint-config-es6":"^1.10.3","eslint-config-loopback":"^10.0.0","eslint-plugin-import":"^2.8.0","gulp":"^3.9.1","gulp-eslint":"^4.0.2","gulp-jasmine":"^3.0.0","gulp-rename":"~1.2.0","gulp-uglify":"~1.0.1","gulp-webpack":"^1.5.0","jasmine":"^2.9.0","karma":"0.13.21","karma-chrome-launcher":"0.2.2","karma-jasmine":"^1.1.1","karma-sauce-launcher":"0.3.1","uglifyjs-webpack-plugin":"^1.1.6"},"engines":{"node":">=8.9","npm":">=5.5"},"scripts":{"test":"gulp test","lint":"gulp lint","build":"gulp build"},"repository":{"type":"git","url":"git+https://github.com/agostone/lodash-deeps.git"},"keywords":["lodash","mixin","mixins","deep"],"author":{"name":"Agoston Nagy"},"license":"MIT","bugs":{"url":"https://github.com/agostone/lodash-deeps/issues"},"homepage":"https://github.com/agostone/lodash-deep","gitHead":"3dbe9717e6995347d7a6da1fc08b1e22a4e952c2","_id":"@agostone/lodash-deeps@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"agostone","email":"agostone@gmail.com"},"dist":{"integrity":"sha512-sQJxsO+uW2SQLSCvXLfPkm8orzKAAlNiSgQK/sKbn3/10IYJCauwWI/J6WxRdz/kXzNKoas7xYHYBeYmIcLsHA==","shasum":"2205604abf0184472e5eb75b8fa6387617482245","tarball":"https://registry.npmjs.org/@agostone/lodash-deeps/-/lodash-deeps-0.3.0.tgz","fileCount":29,"unpackedSize":110377,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSMyqxE9gH7oBAEPqoA8P9KEnjvcOSXxsAH/T3n76P7AIgNjiquhPZahRJhEZysQfUwP/BkIu+A+WnrO2osgBx8zA="}]},"maintainers":[{"email":"agostone@gmail.com","name":"agostone"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodash-deeps_0.3.0_1518194383330_0.83044641809026"},"_hasShrinkwrap":false}},"readme":"# lodash-deeps\n> Lodash 'deep' mixin pairs for functions that has none.\n\n## Compatibility\nlodash-deeps is currently compatible with:\n- Node.js (>=8.9.*)\n- ES6 compatible browsers\n\nMight work with lower node versions, haven't tested.\n\nBrowser wise, ONLY tested with chrome.\n\n## Installation\n### Bower?\nNo bower package yet, but the npm package has a browser version in dist directory.\n\n1. `copy dist/lodash-deeps.min.js to your frontend js directory or use a bundler`\n2. Reference `lodash-deeps.min.js` after `lodash.min.js`\n\n### Node.js\n1. `npm install lodash`\n2. `npm install @agostone/lodash-deeps`\n3. \n    ``` javascript\n\n    const _ = require(\"lodash\");\n    _.mixin(require(\"@agostone/lodash-deeps\"));\n    ```\n\n## Docs\nThe following mixins are included in lodash-deeps:\n- [_.compactDeep](#_compactdeeparray)\n- [_.filterDeep](#_filterdeepcollection-predicate--_identity)\n- [_.findDeep](#_finddeepcollection-predicate--_identity-fromindex--0-returnroot--true)\n- [_.findIndexDeep](#_findindexdeeparray-predicate--_identity-fromindex--0)\n- [_.joinDeep](#_joindeeparray-separator--)\n- [_.mapKeysDeep](#_mapkeysdeepobject-iteratee--_identity)\n- [_.mapValuesDeep](#_mapvaluesdeepobject-iteratee--_identity)\n- [_.pickByDeep](#_pickbydeepobject-predicate--_identity)\n\n### _.compactDeep(array)\nThis method is like [_.compact](https://lodash.com/docs/#compact) except that it recursively compacts nested arrays too.\n\n### _.filterDeep(collection, predicate = _.identity)\nThis method is like [_.filter](https://lodash.com/docs/#filter) except that it recursively filters nested collections too.\n\n```javascript\nconst collection = [\n    {\n        'color': 'blue',\n        'sub': {\n            'name': 'sub',\n            'color': 'red'\n        }\n    },\n    {\n        'name': 'main',\n        'color': 'red'\n    }\n];\n_.filterDeep(collection, value => value.color === 'red');\n/**\n* ->\n* [{\n*   'name': 'main',\n*   'color': 'red'\n* }, {\n*   'name': 'sub',\n*   'color': 'red'\n* }]\n*/\n}\n```\n\n### _.findDeep(collection, predicate = _.identity, fromIndex = 0, returnRoot = true) {\nThis method is like [_.find](https://lodash.com/docs/#find) except that it recursively executes predicate for nested collections.\n\nOnly difference is, if returnRoot is false, it'll return the found element, if true, will return the nesting elements too, up to the root.\n\n```javascript\nconst source = {\n    'one': 'one',\n    'two': 'two',\n    'three': {\n        'four': {\n            'five': 'five',\n            'six': 'six'\n        },\n        'seven': 'seven'\n    }\n};\n_.findDeep(source, value => value === 'five');\n/**\n* ->\n* {\n*     'four': {\n*         'five': 'five',\n*         'six': 'six'\n*     },\n*     'seven': 'seven'\n* }\n*/\n_.findDeep(source, value => value === 'five', 0, false);\n/**\n* ->\n* 'five'\n*/\n```\n\n### _.findIndexDeep(array, predicate = _.identity, fromIndex = 0) {\nThis method is like [_.findIndex](https://lodash.com/docs/#findIndex) except that it recursively executes predicate for nested arrays.\n\nOnly difference is, when predicate is truthy for an element in a deeper level, the result is an index array.\n\n```javascript\nconst array = ['one', ['two', 'three'], 'four'];\nconst index = _.findIndexDeep(array, value => value === 'two');\n_.get(array, index);\n/**\n* ->\n* index == [1, 0]\n* _.get == 'two'\n*/\n```\n\n### _.joinDeep(array, separator = ',')\nThis method is like [_.join](https://lodash.com/docs/#join) except that it recursively compacts nested arrays too.\n\n```javascript\nconst array = ['one', ['two', 'three'], 'four'];\n_.joinDeep(array, '-');\n/**\n* ->\n* 'one-two-three-four'\n*/\n```\n\n### _.mapKeysDeep(object, iteratee = _.identity)\nThis method is like [_.mapKeys](https://lodash.com/docs/#mapKeys) except that it recursively maps keys.\n\n### _.mapValuesDeep(object, iteratee = _.identity)\nThis method is like [_.mapValues](https://lodash.com/docs/#mapValues) except that it recursively maps values.\n\n### _.pickByDeep(object, predicate = _.identity)\nThis method is like [_.pickBy](https://lodash.com/docs/#pickBy) except that it recursively checks in nested collections too.\n\n```javascript\nconst source = {\n    'one': 'one',\n    'two': 'two',\n    'three': undefined,\n    'four': [\n        'two', NaN, 'three'\n    ],\n    'six': aFunction,\n    'seven': theClass,\n    'eight': {\n        'color': 'red'\n    }\n};\n_.pickByDeep(source, value => value === 'red');\n/**\n* ->\n* {\n*     'eight': {\n*         'color': 'red'\n*     }\n* } \n*/\n```\n\n## Requests\nI plan to add more deep functions when/if they are needed.\nFeel free to request or feel free to contribute. =)\n\n## Contributing\nPlease use git-flow. ([git-flow cheat sheet](https://danielkummer.github.io/git-flow-cheatsheet/))\n\n## Credits\n- README.md\n- gulpfile.js\n- karma.config.js\n\nfiles are based on [lodash-deep](https://github.com/marklagendijk/lodash-deep).\n\n## License\nMIT\n\n## TODO\n- More browsers test?\n- Travis?\n- Sauce labs?\n","readmeFilename":"README.md","description":"Lodash deep mixin pairs for functions that has none.","homepage":"https://github.com/agostone/lodash-deep","keywords":["lodash","mixin","mixins","deep"],"repository":{"type":"git","url":"git+https://github.com/agostone/lodash-deeps.git"},"author":{"name":"Agoston Nagy"},"bugs":{"url":"https://github.com/agostone/lodash-deeps/issues"},"license":"MIT"}