{"library":"component-each","type":"library","category":null,"description":"The `component-each` package provides a highly generalized utility function for iterating over arrays, objects, and strings. It was developed as part of the 'Component' project, an early modularity solution for JavaScript that predates modern package managers like npm for front-end assets. This library allows a single `each` function to handle different data types by inspecting their structure, making it a flexible but less performant alternative to native `forEach` or `for...in` loops. Its current stable version is 0.2.6, and it has not seen updates since 2013, indicating it is no longer actively maintained. Its primary differentiator was its role within the now largely superseded 'Component' ecosystem, rather than its unique iteration features which are now standard or handled more efficiently by native JavaScript or modern utility libraries like Lodash.","language":"javascript","status":"abandoned","version":"0.2.6","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install component-each","imports":["const each = require('component-each');","const each = require('component-each');\n// Usage:\neach([1, 2, 3], (num, i) => console.log(num, i));"]},{"cmd":"yarn add component-each","imports":[]},{"cmd":"pnpm add component-each","imports":[]}],"homepage":null,"github":"https://github.com/component/each","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/component-each","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/component-each/compatibility"}}