We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get a subset by range
slice( from number, to number, )(value Array|string|any) -> sliced Array|string|any
A tacit version of Array.prototype.slice with support for strings. to may be negative.
Array.prototype.slice
to
const trimFirstLast = slice(1, -1) console.log( trimFirstLast([1, 2, 3]), ) // [2] console.log( trimFirstLast('abc'), ) // 'b'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
slice
Get a subset by range
synopsis
description
A tacit version of
Array.prototype.slice
with support for strings.to
may be negative.The text was updated successfully, but these errors were encountered: