An open API service indexing awesome lists of open source software.

https://github.com/js-sdk/js-sdk-list

Simple list/array utilities.
https://github.com/js-sdk/js-sdk-list

array javascript library list

Last synced: about 2 months ago
JSON representation

Simple list/array utilities.

Awesome Lists containing this project

README

          

# js-sdk-list

Simple list utilities.

## library

```ts
$ chunk(ls : [a], size : Number) -> [[a]]

// split an 'ls' into chunk of 'size'.

$ reserve(size : Number) -> [a]

// returns an Array with N elements.

$ repeat(size : Number, value : a) -> [a]

// returns an Array with N elements using the value parameter to fill all elements.
```

## license

See `license.md` or visit [Unlicense](http://unlicense.org).