filled-array

Array filler

Creates an array of specified length filled with a given value or function returning values

Returns an array filled with the specified input

GitHub

43 stars
7 watching
5 forks
Language: JavaScript
last commit: over 2 years ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/matcher A utility for simple string matching with wildcard patterns 537
sindresorhus/indent-string A utility function to insert consistent indentation into a string 112
sindresorhus/round-to A utility library for rounding numbers to specific decimal places 155
sindresorhus/hash-object A library that generates a unique digital fingerprint of an object 134
sindresorhus/string-length Corrects string length counting by ignoring astral symbols and ANSI escape codes. 162
sindresorhus/package-config A tool to get namespaced config from the closest package.json 120
sindresorhus/pad-stream Transforms input streams by padding each line with a specified indent 11
sindresorhus/object-assign Provides a polyfill for the ES2015 Object.assign() method to support older browsers and environments. 920
sindresorhus/image-dimensions Gets dimensions of images in various formats without loading the entire image data 431
sindresorhus/strip-indent Removes redundant indentation from a string by finding the minimum leading whitespace across all lines. 135
sindresorhus/filter-obj Filters keys and values in an object based on specified conditions 100
sindresorhus/alpha-sort A utility function for sorting arrays of strings in various natural and case-insensitive orders 39
sindresorhus/get-stream A utility library for working with streams in JavaScript 341
sindresorhus/into-stream Converts various input types into readable streams. 207
sindresorhus/p-some Wait for a specified number of promises to be fulfilled 36