Socket
Socket
Sign inDemoInstall

linq-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    linq-utils

A lightweight and easy-to-use library that provides LINQ-like query capabilities for JavaScript arrays.


Version published
Maintainers
1
Created

Readme

Source

linq-utils - A lightweight and easy-to-use library that provides LINQ-like query capabilities for JavaScript arrays [Discord]

NPM NPM GitHub issues GitHub forks GitHub stars GitHub license Discord server

A lightweight implementation of LINQ-style operations for JavaScript/TypeScript with support for common array manipulations and data transformations.

Installation

npm install --save linq-utils

Usage

import Linq from 'linq-utils';

const numbers = [1, 2, 3, 4, 5];

const linq = new Linq<number>(numbers);

const result = linq
    .Where(x => x % 2 === 0)
    .Select(x => x * 2)
    .ToArray();

console.log(result); // [4, 8]

Keywords

FAQs

Last updated on 03 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc