You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@xylabs/array

Package Overview
Dependencies
Maintainers
0
Versions
416
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/array

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

4.15.3
latest
Source
npmnpm
Version published
Weekly downloads
4.7K
-30.44%
Maintainers
0
Weekly downloads
 
Created
Source

@xylabs/array

logo

main-build npm-badge npm-downloads-badge jsdelivr-badge npm-license-badge codacy-badge codeclimate-badge snyk-badge socket-badge

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

Reference

@xylabs/array

Functions

functions

containsAll

@xylabs/array

function containsAll<T>(source, target): boolean;

Type Parameters

T

T

Parameters

source

T[]

target

T[]

Returns

boolean

distinct

@xylabs/array

function distinct<T>(
   value, 
   index, 
   array): boolean;

Type Parameters

T

T

Parameters

value

T

index

number

array

T[]

Returns

boolean

filterAs

@xylabs/array

function filterAs<In, Out>(x, predicate): NonNullable<Out>[];

Type Parameters

In

In

Out

Out

Parameters

x

In[]

predicate

(a) => Out

Returns

NonNullable<Out>[]

filterAsync

@xylabs/array

function filterAsync<T>(array, predicate): Promise<T[]>;

Returns the elements of an array that meet the condition specified in a callback function.

Type Parameters

T

T

Parameters

array

T[]

The array to filter.

predicate

(value, index, array) => Promise<boolean>

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

Returns

Promise<T[]>

The elements of an array that meet the condition specified in a callback function.

findAs

@xylabs/array

function findAs<In, Out>(x, predicate): undefined | NonNullable<Out>;

Type Parameters

In

In

Out

Out

Parameters

x

In[]

predicate

(a) => Out

Returns

undefined | NonNullable<Out>

findLastAs

@xylabs/array

function findLastAs<In, Out>(x, predicate): undefined | NonNullable<Out>;

Type Parameters

In

In

Out

Out

Parameters

x

In[]

predicate

(a) => Out

Returns

undefined | NonNullable<Out>

flatten

@xylabs/array

function flatten<T>(a?, b?): T[];

Type Parameters

T

T

Parameters

a?

T | ConcatArray<T>

b?

T | ConcatArray<T>

Returns

T[]

uniq

@xylabs/array

function uniq<T>(arr): T[];

Type Parameters

T

T

Parameters

arr

T[]

Returns

T[]

uniqBy

@xylabs/array

function uniqBy<T, I>(arr, iteratee): T[];

Type Parameters

T

T

I

I

Parameters

arr

T[]

iteratee

(item) => I

Returns

T[]

Part of sdk-js

Maintainers

License

See the LICENSE file for license details

Credits

Made with 🔥 and ❄️ by XYLabs

Keywords

xylabs

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

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