$ open source · GPL-3.0 — need a commercial license? imqueue.com →

query.skip() function

Deletes properties from an object.

Signature:

export function skip(obj: any, ...props: string[]): any;

Parameters

Parameter

Type

Description

obj

any

Object to strip.

props

string[]

Property names to delete.

Returns:

any

The same object.

Remarks

MUTATES what it is given and hands it back, so it composes into a call chain. A falsy argument is returned untouched, which makes it safe on an optional value.