Skip to content

Repository files navigation

@lucid-softworks/array-split-at

Split an array at a positive or negative index.

import { splitAt } from "@lucid-softworks/array-split-at";

splitAt([1, 2, 3], -1); // [[1, 2], [3]]

See the exported types and tests for exact edge-case behavior.

About

Split an array at a positive or negative index.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages