Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@supercharge/arrays

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/arrays - npm Package Versions

2

4.4.0

Diff

Changelog

Source

4.4.0 - 2024-02-xx

Added

  • compact: refined return type for truthy values

Updated

  • sort: make the comparator parameter optional

Updated

  • bump dependencies
  • bump dependencies in GitHub Actions testing workflow
marcuspoehls
published 4.3.0 •

Changelog

Source

4.3.0 - 2023-03-12

Added

  • implement the Iterable interface via [Symbol.iterator] to allow iterators and for..of loops

Updated

  • bump dependencies
marcuspoehls
published 4.2.0 •

Changelog

Source

4.2.0 - 2022-12-28

Added

  • join(separatorOrCallback, finalGlue?) method now supports a callback function as a separator and a final glue string. The final glue will be used to join the last item onto the resulting string

Updated

  • bump dependencies
  • refined package exports
marcuspoehls
published 4.1.0 •

Changelog

Source

4.1.0 - 2022-11-02

Added

  • reject method: inverse of filter, removing all items satisfying the provided callback function
  • unique method: keep only unique items in the array
  • uniqueBy method: keep only unique items in the array identified by a given selector function

Updated

  • bump dependencies

Fixed

  • isIterable now checks whether the given input implements a Symbol.iterator function
marcuspoehls
published 4.0.0 •

Changelog

Source

4.0.0 - 2022-08-08

Added

  • append method: an alias for the push method, adding an item to the end of the array
  • prepend method: an alias for the unshift method, adding an item to the beginning of the array

Updated

  • bump dependencies

Breaking Changes

  • require Node.js v16 or higher; drop support for Node.js v12 and v14
marcuspoehls
published 3.2.0 •

Changelog

Source

3.2.0 - 2022-05-06

Added

  • support callback in groupBy
    const products = [
      { name: 'Macbook', price: 2500 },
      { name: 'Macbook', price: 3000 },
      { name: 'iPhone', price: 1000 }
    ]
    
    Arr.from(products).groupBy(product => {
      return product.name
    })
    
    // Macbook: [
    //   { name: 'Macbook', price: 2500 },
    //   { name: 'Macbook', price: 3000 }
    // ],
    // iPhone: [
    //   { name: 'iPhone', price: 1000 }
    // ]
    

Updated

  • bump dependency
marcuspoehls
published 3.1.0 •

Changelog

Source

3.1.0 - 2022-03-22

Added

  • forEach: perform a given action for each item in the array
marcuspoehls
published 3.0.0 •

Changelog

Source

3.0.0 - 2022-03-12

Updated

  • refine the array creation when using strings

Breaking Changes

  • using Arr.from with strings will wrap the string values into an array instead of creating an array of the string’s individual characters
  • the changed string handling now properly resolves return values when using the diff method
marcuspoehls
published 2.2.0 •

Changelog

Source

2.2.0 - 2022-02-22

Added

  • has(valueOrCallback) method: added support for a callback function in the has method allowing users a refined handling to determine if a value is included in the array

Updated

  • bump dependency
marcuspoehls
published 2.1.0 •

Changelog

Source

2.1.0 - 2022-02-11

Added

  • reduce() method: runs a given reducer function on each item in the array and passes the accumulator to the next iteration
  • groupBy() method: group the array by a given key
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc