{"_id":"10functionalities-nareshnandam","name":"10functionalities-nareshnandam","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"10functionalities-nareshnandam","version":"1.0.0","description":"In this package you get 10 javascript array functionalities that can be useful for you.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nareshkumarnandam/10functionalities.git"},"keywords":["array","methods","javascript"],"author":{"name":"Naresh Kumar Nandam"},"license":"ISC","bugs":{"url":"https://github.com/nareshkumarnandam/10functionalities/issues"},"homepage":"https://github.com/nareshkumarnandam/10functionalities#readme","_id":"10functionalities-nareshnandam@1.0.0","_nodeVersion":"20.12.1","_npmVersion":"10.5.2","dist":{"integrity":"sha512-755kYoFxBY+626AuI0nViczZIoIq325yt43qFWmssva3z37ojDfGEnbvW0ztL6FjstLHbl/ZC9XCasqlhrVCVw==","shasum":"423f866248bda52ba2324ae78f2650ec1ddc86cf","tarball":"https://registry.npmjs.org/10functionalities-nareshnandam/-/10functionalities-nareshnandam-1.0.0.tgz","fileCount":3,"unpackedSize":3980,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4xynS42KB6gKpcJb+16iP22qJSc4OKsCKLVQV6gnhLAiAIUthBHugiH6zXilk7lwFpS/GL6A4akP/wvwEqkrN5IQ=="}]},"_npmUser":{"name":"nareshnandam666","email":"nareshkumarnandam2002@gmail.com"},"directories":{},"maintainers":[{"name":"nareshnandam666","email":"nareshkumarnandam2002@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/10functionalities-nareshnandam_1.0.0_1715005886454_0.9131559332715256"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-06T14:31:26.453Z","1.0.0":"2024-05-06T14:31:26.595Z","modified":"2024-05-06T14:31:26.891Z"},"maintainers":[{"name":"nareshnandam666","email":"nareshkumarnandam2002@gmail.com"}],"description":"In this package you get 10 javascript array functionalities that can be useful for you.","homepage":"https://github.com/nareshkumarnandam/10functionalities#readme","keywords":["array","methods","javascript"],"repository":{"type":"git","url":"git+https://github.com/nareshkumarnandam/10functionalities.git"},"author":{"name":"Naresh Kumar Nandam"},"bugs":{"url":"https://github.com/nareshkumarnandam/10functionalities/issues"},"license":"ISC","readme":"# Array Methods Package\r\n\r\nA simple npm package showcasing 10 essential array methods in JavaScript.\r\n\r\n## Installation\r\n\r\n```markdown\r\nnpm install 10functionalities\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nconst arrayMethods = require('array-methods-package');\r\n\r\n// Sample array\r\nconst arr = [1, 2, 3, 4, 5];\r\n\r\n// 1. forEach() method\r\narrayMethods.forEachExample(arr);\r\n\r\n// 2. map() method\r\narrayMethods.mapExample(arr);\r\n\r\n// 3. filter() method\r\narrayMethods.filterExample(arr);\r\n\r\n// 4. reduce() method\r\narrayMethods.reduceExample(arr);\r\n\r\n// 5. find() method\r\narrayMethods.findExample(arr);\r\n\r\n// 6. some() method\r\narrayMethods.someExample(arr);\r\n\r\n// 7. every() method\r\narrayMethods.everyExample(arr);\r\n\r\n// 8. sort() method\r\narrayMethods.sortExample();\r\n\r\n// 9. indexOf() method\r\narrayMethods.indexOfExample();\r\n\r\n// 10. lastIndexOf() method\r\narrayMethods.lastIndexOfExample();\r\n```\r\n\r\n## Methods\r\n\r\n### 1. forEach()\r\nIterates through each element of the array.\r\n\r\n### 2. map()\r\nCreates a new array by performing a function on each array element.\r\n\r\n### 3. filter()\r\nCreates a new array with elements that pass a test.\r\n\r\n### 4. reduce()\r\nExecutes a reducer function on each element of the array, resulting in a single output value.\r\n\r\n### 5. find()\r\nReturns the value of the first array element that satisfies a provided condition.\r\n\r\n### 6. some()\r\nChecks if at least one element in the array satisfies the provided condition.\r\n\r\n### 7. every()\r\nChecks if all elements in the array satisfy the provided condition.\r\n\r\n### 8. sort()\r\nSorts the elements of the array either in ascending or descending order.\r\n\r\n### 9. indexOf()\r\nReturns the index of the first occurrence of a specified value in the array.\r\n\r\n### 10. lastIndexOf()\r\nReturns the index of the last occurrence of a specified value in the array.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n","readmeFilename":"README.md"}