Return the last element in an array. Faster than `.slice`
☆34Dec 27, 2021Updated 4 years ago
Alternatives and similar repositories for array-last
Users that are interested in array-last are comparing it to the libraries listed below
Sorting:
- Faster, node.js focused alternative to JavaScript's native array map.☆14Feb 28, 2017Updated 9 years ago
- Visit a method over the items in an object, or map visit over the objects in an array. This is an alternative approach to using extend or…☆20Dec 15, 2020Updated 5 years ago
- Like `extend` but only copies missing properties/values to the target object.☆17Apr 26, 2017Updated 8 years ago
- Find a file given a declaration of locations.☆12Mar 19, 2022Updated 3 years ago
- Loop over each item in an array and call the given function on every element.☆14Feb 27, 2017Updated 9 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Return true if a value is a valid glob pattern string, or array of glob patterns.☆24Aug 27, 2019Updated 6 years ago
- Returns an array of unique values using strict equality for comparisons, maintaining the same order as the provided arrays.☆24Nov 5, 2020Updated 5 years ago
- Uses a breadth-first search, when necessary, to resolve the file path using the correct casing, and verify that the file actually exists.…☆12Sep 1, 2017Updated 8 years ago
- Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.☆18Nov 21, 2022Updated 3 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Return true if a file path contains the given path.☆17May 18, 2021Updated 4 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆45Jan 4, 2022Updated 4 years ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Create ansi colors by passing open and close codes.☆19Apr 12, 2024Updated last year
- Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor reformatting.☆19Dec 6, 2022Updated 3 years ago
- Sink your streams.☆17Apr 15, 2023Updated 2 years ago
- Add/write sourcemaps to/from Vinyl files.☆16Apr 6, 2023Updated 2 years ago
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 2 years ago
- Utils for working with JavaScript classes and prototype methods.☆19Mar 14, 2023Updated 2 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Dec 30, 2021Updated 4 years ago
- Easily add plugin support to your node.js application.☆26Dec 14, 2020Updated 5 years ago
- Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.☆24Mar 16, 2022Updated 3 years ago
- easy deduplication of array values☆24May 2, 2024Updated last year
- Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notati…☆24Jan 25, 2022Updated 4 years ago
- Create nested getter properties and any intermediary dot notation (`'a.b.c'`) paths☆13Jun 18, 2021Updated 4 years ago
- Get the npm global path prefix. Same code used internally by npm.☆29Aug 17, 2024Updated last year
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Jan 17, 2022Updated 4 years ago
- Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.☆23Dec 16, 2020Updated 5 years ago
- The color gray, in ansi.☆21May 24, 2015Updated 10 years ago
- Extends `stats.isDirectory()`, returns `true` if a filepath is a directory.☆27Nov 21, 2016Updated 9 years ago
- Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or…☆12Sep 1, 2017Updated 8 years ago
- Regular expression for matching punctuation characters.☆10Jul 1, 2017Updated 8 years ago
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 4 years ago
- Gulp plugin that prompts you to choose the files pass through the stream.☆10Apr 29, 2017Updated 8 years ago
- Wrap a Readable stream in a Transform stream.☆10Apr 6, 2023Updated 2 years ago
- Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.☆13Dec 30, 2015Updated 10 years ago
- Extend object A with the properties of object B. node.js/javascript util.☆33Aug 7, 2021Updated 4 years ago
- tar plugin for decompress☆16Nov 6, 2020Updated 5 years ago