{"_id":"@charliefan/fe-toolbox","_rev":"4-815e3857de4730f8c643928994e85371","name":"@charliefan/fe-toolbox","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@charliefan/fe-toolbox","version":"1.0.0","description":"tool box of util functions","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"charlie.f"},"license":"MIT","scripts":{"build:types":"tsc --emitDeclarationOnly --outDir dist","build:lib":"rollup --config rollup.config.js","build":"npm run build:types && npm run build:lib"},"devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-runtime":"^7.14.3","@babel/preset-env":"^7.14.2","@babel/preset-typescript":"^7.13.0","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-node-resolve":"^13.0.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","rollup":"^2.48.0","rollup-plugin-delete":"^2.0.0","typescript":"^4.2.4"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/CharlieFan/fe-toolbox.git"},"keywords":["utils"],"bugs":{"url":"https://github.com/CharlieFan/fe-toolbox/issues"},"homepage":"https://github.com/CharlieFan/fe-toolbox#readme","gitHead":"31bc8e11f131929a2266ee0d8b3398e9336c0d2a","_id":"@charliefan/fe-toolbox@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-O/v6ky8tVKJbQ7HkZerGu0mZ4tNffhw7z7Q6yg6moUNvFGpgLzKY5kawVMBQA9xabDryyYw2OqhUGzKPSzxScQ==","shasum":"0dd1e496a67796cb178e2e9df73081761a407dbc","tarball":"https://registry.npmjs.org/@charliefan/fe-toolbox/-/fe-toolbox-1.0.0.tgz","fileCount":12,"unpackedSize":4755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgp/CDCRA9TVsSAnZWagAAK80P/3ueTl1HvnUFsYDqZV3H\ny02gORxX3Cxefh+ni/LlSXHYQWpaP7Hgqit9CFa2vcevhsaHaMjgh0j0Og8l\nxAiT/o/c0Ge3VwG0r59EYgRfzMRWUek+JnVep8GT/qWX2JFbNaiNO7j6RYiw\nMVZtCR+1hF3XX3JXFoq4K7aYtsHGSnWSrW4yPonQhMzz4ox0gms/Nu039rtB\n3lwthuB3f0xKcEZcRgt32bUEkseE22SQgBwnsRb8Cod9Uc5eW3vk79E9qNoz\nKevQLuwywetGTydOmvoB424WyMES4zgRvWZazLZvUSuBdEwc9uOY1tyCcqDm\n4L/OEwz6E89yTqLYWY+vGs7nQmmIy6w6KMCQWx81qMI3cAQm06QxEt3M/yjj\n5S6ZNzs81tqwxubeH+JVA041f83N+raltaHqa4g93UOyyHghoZPjCsEOAOZV\nrJUdQv+Qnn1M2LwlYKE9nUBIRj0haMtMS7PGzKL6ClqqZwFrw/VKiSjxP9mg\nc17hVcTEN4I8quo9DBRwcUxEVLY99aKQJaSPVqgztx4zM9G9yL0m8epjKS9K\nZJFMEE30yQ8Np1tIPYhw34LlhEVqE0Y9jKpXTNAtQdfsCmZLGPoiXNXLCEjO\nf2OehFO6g+w9jlZw8zRMRZxHDa+4n2M4FixGOJMKbDJgYFnPVtBpgI5294ux\npX+S\r\n=/cgk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/BY5KC/8/ZNwbAoL+G7hU6CNA9/G37m2MtRTluipzIQIhAONl3EsEmRdBs+NbD3fLIq01gviSZU+ZxHZR7sNwjmN2"}]},"_npmUser":{"name":"charliefan","email":"chen.fan1991@outlook.com"},"directories":{},"maintainers":[{"name":"charliefan","email":"chen.fan1991@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fe-toolbox_1.0.0_1621618819154_0.43091951451639643"},"_hasShrinkwrap":false},"1.0.1":{"name":"@charliefan/fe-toolbox","version":"1.0.1","description":"tool box of util functions","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"charlie.f"},"license":"MIT","scripts":{"build:types":"tsc --emitDeclarationOnly --outDir dist","build:lib":"rollup --config rollup.config.js","build":"npm run build:types && npm run build:lib"},"devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-runtime":"^7.14.3","@babel/preset-env":"^7.14.2","@babel/preset-typescript":"^7.13.0","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-node-resolve":"^13.0.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","rollup":"^2.48.0","rollup-plugin-delete":"^2.0.0","typescript":"^4.2.4"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/CharlieFan/fe-toolbox.git"},"keywords":["utils"],"bugs":{"url":"https://github.com/CharlieFan/fe-toolbox/issues"},"homepage":"https://github.com/CharlieFan/fe-toolbox#readme","gitHead":"bfd184e3acafa28b101d4e5944a1aedaf44b5275","_id":"@charliefan/fe-toolbox@1.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-jFh+QyTCuobqRxBEDNtAY6qXZ0tOwaL6I4qKRCur1Kxf5AZhqoGI19h2rEOnJyxxwelaA76CEOyaN87W+JObnA==","shasum":"af57d2f3628ceb0e72c2d299148e3ed87bd67eb6","tarball":"https://registry.npmjs.org/@charliefan/fe-toolbox/-/fe-toolbox-1.0.1.tgz","fileCount":16,"unpackedSize":6575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgp/GJCRA9TVsSAnZWagAAfZwP/0LLZuTduPHwh5ORcdpr\nZ4CR142fj9KBvce+o0iPViEoIuKfDsEWi/EVCwjgNHO1InPCFO1tQ8eOxwk4\n1w2xDeSWdUJ80jipRYv+3M79wk3V6/Nkjp9+0rSpHgMmV2OBnjmf0s5NDJf7\nqRKcTk7DTp+9sFgYrNuAGOdBst1jTO02SVx9GqpCJLxqqKDUOifiDchPJvYv\ng2L3YQis+RjUjULYiy1TMVFbAMwNS6LytM2/4ZVAPOH8bZ4L1tVqJ/T8hrga\nUzit2wtZWFOWYBRnSBwDs7fZgCZ2puSQ5XFkbBNZ6Z+Nq0ZeilsEt7/YZ1oN\nTOBdn8GxcqKBHcAVb7+rZCVcCSllNzy+2AjVmnvs5o6tVXCPT59INoVeU5gD\n3ZD2sTupxa39a98DTHRp5jxEg5lhrPC3ZTYlb6HaIRl5Q81F5SCb8P8FRJ5c\nFa+TXBqY5PZ1nujigni6yg2P9xdO+M3wjECMHSQ1qn9h1ucJSS8d5hZSzkni\noTxn9rPV4fAjiTe80OSysJICW6+ltgcrCVZpfZEmZ9GoTclggu6d/WKmklae\n98Bqo8YI3OMPTGxIXZLpAqMS89sCyxinhxRBDNPd2jpzxw77wWofufR/xy8X\nn0koIsipcj0btOMS2d0bT2W6UhNYqZ4pu/KQeYpSOwj9aWzraUqQ0yCVVVno\nU3e1\r\n=WEsJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBmaeIZ9vBS2qGvcR2jd7mA0GHcRHwruITlPdcT9zK6AIhAN1PaZqiL4xoc8taWtGroLY0EvfQm3+Ee1EWQERQkGOU"}]},"_npmUser":{"name":"charliefan","email":"chen.fan1991@outlook.com"},"directories":{},"maintainers":[{"name":"charliefan","email":"chen.fan1991@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fe-toolbox_1.0.1_1621619081189_0.5118409679020852"},"_hasShrinkwrap":false},"1.0.3":{"name":"@charliefan/fe-toolbox","version":"1.0.3","description":"tool box of util functions","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"charlie.f"},"license":"MIT","scripts":{"build:types":"tsc --emitDeclarationOnly --outDir dist","build:lib":"rollup --config rollup.config.js","build":"npm run build:types && npm run build:lib"},"devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-runtime":"^7.14.3","@babel/preset-env":"^7.14.2","@babel/preset-typescript":"^7.13.0","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-node-resolve":"^13.0.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","rollup":"^2.48.0","rollup-plugin-delete":"^2.0.0","typescript":"^4.2.4"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/CharlieFan/fe-toolbox.git"},"keywords":["utils"],"bugs":{"url":"https://github.com/CharlieFan/fe-toolbox/issues"},"homepage":"https://github.com/CharlieFan/fe-toolbox#readme","gitHead":"b81aeac0d5d4665789cae2f37352a134811f20bd","_id":"@charliefan/fe-toolbox@1.0.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-OhMOksHjnL9maRiDdFxlUpM75l0sq69WYgFrNLzwiwdSe04PDEIIeVuAqBgzGkIkjzZMDTguBgDYCxnsTW30dg==","shasum":"32c0276f58ebecc6499737f2bbe905962f32ee8a","tarball":"https://registry.npmjs.org/@charliefan/fe-toolbox/-/fe-toolbox-1.0.3.tgz","fileCount":20,"unpackedSize":139922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrAeICRA9TVsSAnZWagAA6ToP/A29kIpE3kneY1rnh67b\nhWUNbbE/1PZLhq1a2DTutP1qlI2pjzxnFLOZwowTDqL6OgGmaQEe2D3k+HYe\ntzay34IEoW0VZf0YuztlGiUOS87W60VZmL0+vJsNLNpOddcm2P2ZW645w/MV\n4+MYSrI7Pw/9p7PG+JZCDwpNmKJJj1C1Am/L4CWlPxf0+wtGEsHqw8bgi03E\nsoBCRUC9OPMTU83yNPHqe4hforYrIWhfkh85ygf7oXdEKGr0zlcyAPm4Ssvr\nlON2EmjboffnVQgaw0NGI0sWUOk3EXXahQk2tLBTRsZL854hEnCVemDgTHvd\ncm/eT9xppjCT0JRz19yBlMZ4v0wnY9bCcLnMyCaFt1a3qplxqfOMfawwfbYz\nucBrvjLTAG/BNfeXiX3Apxc8KcNlcKgZecYKczhsQxrZmLHT/amLyVDDoT3e\nyH+Yf77/Vr1CXSOs4k8CnBFcfWMI9WaR+XEp3ZmALOBe/JtZ3wgEJt7xVJcN\n3/e46NERDXZ1kq4jxWiQZ1TA9cRNbNnsW+u21SQCJ+XoguuuYE69FZhn1wSM\no72GrZrh2tD7GErV0CHLckqTStJRJKmttE50McqVWTpPFpqOJOKUfLgHdEfT\neYLLIX35oLfHN3U2dhqPS/TYeYen+wetADTZ4sKB/Lmgs5jH6D1VT/KjWpK9\nsmLv\r\n=5zSl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfPuVuCo9fMr9yPtSyuklIbmcI9un8cDx9jWlq6B7C2AiA4VNp9pWZGI/5I6hCzhMBQH5v2TCx/l5co5bhkf/HMvQ=="}]},"_npmUser":{"name":"charliefan","email":"chen.fan1991@outlook.com"},"directories":{},"maintainers":[{"name":"charliefan","email":"chen.fan1991@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fe-toolbox_1.0.3_1621886855420_0.7013833382419272"},"_hasShrinkwrap":false},"1.0.4":{"name":"@charliefan/fe-toolbox","version":"1.0.4","description":"tool box of util functions","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"charlie.f"},"license":"MIT","scripts":{"build:types":"tsc --emitDeclarationOnly --outDir dist","build:lib":"rollup --config rollup.config.js","build":"npm run build:types && npm run build:lib"},"devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-runtime":"^7.14.3","@babel/preset-env":"^7.14.2","@babel/preset-typescript":"^7.13.0","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-node-resolve":"^13.0.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","rollup":"^2.48.0","rollup-plugin-delete":"^2.0.0","typescript":"^4.2.4"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/CharlieFan/fe-toolbox.git"},"keywords":["utils"],"bugs":{"url":"https://github.com/CharlieFan/fe-toolbox/issues"},"homepage":"https://github.com/CharlieFan/fe-toolbox#readme","gitHead":"760f9a1fc535d5503ae18b0cbd11a64132904b26","_id":"@charliefan/fe-toolbox@1.0.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-4oeFDf2Etc1lnS9ovX3Ec9d/oVUmGlnUgZpicIF6NdrzaR0Bj/pKRFrc9qYLl9WmrJmfYWdgxfso3ay5nQgouw==","shasum":"12bf96ee58e4498d9a55271083f69f62b9630ff8","tarball":"https://registry.npmjs.org/@charliefan/fe-toolbox/-/fe-toolbox-1.0.4.tgz","fileCount":23,"unpackedSize":162573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrCphCRA9TVsSAnZWagAAwnoP/3pMtYagMYdvGF5hrIvT\nwsMSgLQfaHwH3JM0wqU2flCf1BSVDJtaABGUIF7BvkW5lZ2mFHZaAZDkkGmo\nD3GCeVcTg7np91QcMuJvyMjy6SYet8VTsV2mjHtC5U3jTTrsw81jkMPRADEi\nBYzR0KtLgCmcYBiv5wSdPWQStv+19UxzqcUcOqLFKGVc+/MHZxSivEkF04kL\nkcwvd//w5PvyU7U/T/lHcrr3VwNHgh+b0S//6pmn0ybGkj1lS8njQBaQWhU8\n+EkzIEjdUJDGSM2dHQDZtz0cVjyTLfGaQbT4+kF97BZa2EhIJvKYiIs6wK6G\n47X7KSOLrp+ATamqX6+lh7zIDeAyu7mwQ2l2uoF3dDBX9Z6wPKvRN9+/aNOY\nDVEWpuk2SwhiP9GaxvgQKIiucyUwM2HwRFlQjT5GCzH66odFwPM+QVORnfaR\nxX93PqwEbL+cEGT8+/YzgjPkHORttrYpQHrbEEDuqFu3LBJ3KmzofJfvDQzf\nxR0oPhKDAiLTEIuNsrjnaHOw/hBIajw62tEnEuJaxXQv+tvMRK2qou5yqSy6\no7dBkzmEGlTBaIWSapolR867QvkVvKPzVo0W08bnfHVHQtnGVW5LYLrR97IT\njKzOk+UvAsa9TQMmVIvHoRvP2uWOEs6O+e9/ZFUG9EOoqnVYq5RbEfGAecrz\nd7jU\r\n=W52S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD85rrW19YdzjA7FuapbCf9niaIPR9LQ/PmLQ05oLMAEAIhALgsUTc77XyFF5heM0yj8p7ohIc/rw6u+8qJ/XM+RBIM"}]},"_npmUser":{"name":"charliefan","email":"chen.fan1991@outlook.com"},"directories":{},"maintainers":[{"name":"charliefan","email":"chen.fan1991@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fe-toolbox_1.0.4_1621895777186_0.03238329197252554"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-21T17:40:19.115Z","1.0.0":"2021-05-21T17:40:19.298Z","modified":"2022-04-04T22:32:24.951Z","1.0.1":"2021-05-21T17:44:41.354Z","1.0.3":"2021-05-24T20:07:35.611Z","1.0.4":"2021-05-24T22:36:17.341Z"},"maintainers":[{"name":"charliefan","email":"chen.fan1991@outlook.com"}],"description":"tool box of util functions","homepage":"https://github.com/CharlieFan/fe-toolbox#readme","keywords":["utils"],"repository":{"type":"git","url":"git+https://github.com/CharlieFan/fe-toolbox.git"},"author":{"name":"charlie.f"},"bugs":{"url":"https://github.com/CharlieFan/fe-toolbox/issues"},"license":"MIT","readme":"# Front End Development Toolbox\n\n## Description\n\nfe-toolbox is a collection of utility functions that might be useful in Front End development\n\n## Install\n\n```\nnpm i --save @charliefan/fe-toolbox\n```\n\nor\n\n```\nyarn add @charliefan/fe-toolbox\n```\n\nimport into js file:\n\n```\nimport * as feToolbox from '@charliefan/fe-toolbox';\n```\n\n## Contents\n\n-   [Cookie Tool](#cookie-tool)\n-   [localStorage Tool](#localStorage-tool)\n-   [String Tool](#String-Tool)\n-   [Array Tool](#Array-Tool)\n\n## Usage\n\n### Cookie Tool\n\nGet cookie value from cookie:\n\n```\nimport { getCookieItem } from '@charliefan/fe-toolbox';\n\n// if there is 'mykey=123' in cookie, this will return 123 from cookie\nconst myKeyValue = getCookieItem('mykey');\n```\n\n### localStorage Tool\n\n1. set item in localStorage:\n\n`storageTool.setItem(key: string, data: any, expiredIn: number, startAt?: number):void`\n\n`expiredIn` and `startAt` are unix time in miliseconds\n\n```\nimport { storageTool } from '@charliefan/fe-toolbox';\n\n// 1. set item in localStorage without expiration\nstorageTool.setItem('myData', { a: '1', b: '2'});\n\n// 2. set item in localStorage expired in 1 minutes\nstorageTool.setItem('myData', { a: '1', b: '2'}, 60000);\n\n\n// 3. set item in localStorage expired in 1 minutes at given start\nstorageTool.setItem('myData', { a: '1', b: '2'}, 60000, new Date().getTime();\n```\n\n2. get item from localStorage:\n\n`storageTool.getItem(key: string): any`\n\nreturn `null` if data does not exists or data is expired\n\n```\nimport { storageTool } from '@charliefan/fe-toolbox';\n\nconst retrievedData = storageTool.getItem('my-key');\n```\n\n3. remove item from localStorage:\n\n`storageTool.removeItem(key: string): void`\n\nexact same with `localStorage.removeItem`\n\n4. remove all items from localStorage:\n\n`storageTool.removeAll():void`\n\nexact same with `localStorage.clear()`\n\n### String Tool\n\n1. `stringhighlighter` is the function that can match string in an origin string and highlight it with \\<b> tag\n\n`stringhighlighter(keywords: string, orgin: string,):string`\n\n```\nimport { stringhighlighter } from '@charliefan/fe-toolbox';\n\nconst highlighted = stringhighlighter('777 Bay', '777 Bay street, Toronto, ON');\n\n// will return '<b>777 Bay</b> street, Toronto, ON'\n```\n\n2. `numberStringFormat` is a function to format number into a string as required. For example, to format a number into a currency number string\n\n`numberStringFormat(numberSrc: string | number, bit = 0, sign = ',', gapNum = 3): string`\n\n`digits` (optional) The number of digits to appear after the decimal point\n\n`sign` (optional) default is ',' seperator symbol e.g thousand seperator\n\n`gapnum` (optioal) default is 3, the number of digits where the `sign` appear after.\n\n```\nimport { numberStringFormat } from '@charliefan/fe-toolbox';\n\nconst price = numberStringFormat(64999);\n\n// price -> '64,999'\n\nconst productNum = numberStringFormat(123123123433, 0, '-', 4);\n\n// productNum -> '1231-2312-3433'\n```\n\n`numberFormat(numberSrc: string | number, bit = 0, sign = ',', gapNum = 3): string`\n\n### Array Tool\n\n`listItemSelector` is a function that get selected items list by given target and current selected list;\n\n```\nlistItemSelector(\n    target: string | number,\n    selectedList: Array<string | number>,\n    defaultValue: string | number = '',\n    isDefaultValueExcludable = false\n): Array<string | number>\n```\n\nFor example:\n\narrayItemPicker(1, [1,2,3]) will return [2,3]\narrayItemPicker(3, [1,2]) will return [1,2,3]\n\n```\nimport { listItemSelector } from '@charliefan/fe-toolbox';\n\nconst checkedItems = listItemSelector(3, [1,2]);\n// checkedItems will be [1,2,3]\n\n\n// if default value is provided, then it will return an array that contains a default value\n\nconst checkedItems2 = listItemSelector(1, [1], 1);\n// checkedItems2 will be [1]\n\n\n// if isDefaultValueExcludable is true, then if the target selected default value, then the array will exclude other values except default value:\n\n\nconst checkedItems3 = listItemSelector(1, [2,3,4], 1, true);\n// checkedItems3 will be [1]\n```\n\n`flatDeep` is a function to flat an array\n\n`flatDeep(arr: Array<T>, depth: number): Array<T>`\n\ndepth is the depth of the array, it can also be infinite:\n\n```\nimport { flatDeep } from '@charliefan/fe-toolbox';\n\nconst flattenArray = flatDeep([1,[2,3], 4], 1);\n\n// flattenArray will be [1,2,3,4]\n\nconst flattenArray2 = flatDeep([1,[2,3], 4, [5, [6,7]]], 1);\n// flattenArray2 will be [1,2,3,4,5,6,7]\n```\n","readmeFilename":"README.md"}