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: about 4 years ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/matcherA utility for simple string matching with wildcard patterns539
sindresorhus/indent-stringA utility function to insert consistent indentation into a string112
sindresorhus/round-toA utility library for rounding numbers to specific decimal places155
sindresorhus/hash-objectA library that generates a unique digital fingerprint of an object134
sindresorhus/string-lengthCorrects string length counting by ignoring astral symbols and ANSI escape codes.163
sindresorhus/package-configA tool to get namespaced config from the closest package.json120
sindresorhus/pad-streamTransforms input streams by padding each line with a specified indent11
sindresorhus/object-assignProvides a polyfill for the ES2015 Object.assign() method to support older browsers and environments.920
sindresorhus/image-dimensionsGets dimensions of images in various formats without loading the entire image data436
sindresorhus/strip-indentRemoves redundant indentation from a string by finding the minimum leading whitespace across all lines.136
sindresorhus/filter-objFilters keys and values in an object based on specified conditions102
sindresorhus/alpha-sortA utility function for sorting arrays of strings in various natural and case-insensitive orders39
sindresorhus/get-streamA utility library for working with streams in JavaScript342
sindresorhus/into-streamConverts various input types into readable streams.207
sindresorhus/p-someWait for a specified number of promises to be fulfilled36