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.
- Host: GitHub
- URL: https://github.com/js-sdk/js-sdk-list
- Owner: js-sdk
- License: unlicense
- Created: 2017-09-14T23:16:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T02:46:10.000Z (almost 9 years ago)
- Last Synced: 2025-09-18T03:21:23.574Z (9 months ago)
- Topics: array, javascript, library, list
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.md
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).