Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

array-like/fill

Repository files navigation

ArrayLike filling functions for JavaScript. See docs.

import {alloc} from '@array-like/alloc';
import {iota} from '@array-like/fill';

const a = alloc(100); // undefined undefined undefined ...
iota(a, 0, 100, 0);
a; // 0 1 2 3 4 ...

import {fill} from '@array-like/fill';
fill(a, 0, 100, -1);
a; // -1 -1 -1 -1 -1 ...

import {fillfn} from '@array-like/fill';
fillfn(a, 0, 100, () => []);
a; // [] [] [] [] [] ...
a[0] !== a[1]; // true

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

About

🍦 ArrayLike filling functions for JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.