utils/array-utils/src/index.js

  1. /**
  2. * Utility functions for arrays.
  3. * @module array-utils
  4. * @example
  5. * const { flatten, head } = require('@jscad/array-utils')
  6. */
  7. module.exports = {
  8. flatten: require('./flatten'),
  9. fnNumberSort: require('./fnNumberSort'),
  10. head: require('./head'),
  11. insertSorted: require('./insertSorted'),
  12. nth: require('./nth'),
  13. padToLength: require('./padToLength'),
  14. toArray: require('./toArray')
  15. }