Linq.js is a TypeScript library that provides LINQ-like query capabilities for arrays, allowing you to perform powerful data manipulations and transformations with ease.
- Fluent and functional programming style for array operations.
- Filter, project, order, group, join, and more.
- Chain multiple operations together for complex transformations.
- Simplify common array manipulations.
- Supports TypeScript and modern JavaScript.
npm install @nightmaregaurav/linq.jsImport the Linq class and start chaining operations:
import { Linq } from '@nightmaregaurav/linq.js';
const data = [/* your data array */];
const query = new Linq(data)
.where(item => /* predicate function */)
.select(item => /* selector function */)
.orderBy((a, b) => /* comparer function */);
const result = query.toArray();
console.log(result);Linq.js is released under the MIT License. You can find the full license details in the LICENSE file.
Contributions are welcome! Feel free to open issues and submit pull requests.
Open For Contribution
Linq.js is made with ❤️ by NightmareGaurav.