JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40
  • Score
    100M100P100Q62195F
  • License MIT

Supply-chain hardened rimraf

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hazae41/rimraf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Arrays

    Utilities to deal with arrays

    npm i @hazae41/arrays

    Node Package 📦

    Features

    Current features

    • 100% TypeScript and ESM
    • No external dependency
    • Unit-tested and benchmarked
    • Get the last value
    • Get a random value using Math's PRNG
    • Get a random value using WebCrypto's CSPRNG

    Usage

    Arrays.last

    Get the last value

    import { Arrays } from "@hazae41/arrays"
    
    const value = Arrays.last([1, 2, 3, 4, 5])

    Arrays.random

    Get a random value using Math's PRNG

    import { Arrays } from "@hazae41/arrays"
    
    const value = Arrays.random([1, 2, 3, 4, 5])

    Arrays.cryptoRandom

    Get a random value using WebCrypto's CSPRNG

    import { Arrays } from "@hazae41/arrays"
    
    const value = Arrays.cryptoRandom([1, 2, 3, 4, 5])