plug-them-holes
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

plug-them-holes

Library for plugging holes in an array - Node module

Changes

  • using main branch
  • using typescript
  • using /src directory for code and test

Usage

  > var pth = require('plug-them-holes')

  > pth
  [Function: plugThemHoles]

  > pth([1, 2, 3, ,,,, 4])
  [ 1, 2, 3, 4 ]

  > pth([1, 2, 3, ,,[1, 2, 3],, 4])
  [ 1, 2, 3, [ 1, 2, 3 ], 4 ]

  > pth([1, 2, 3, ,,[1, 2,,,,,,,,,,,,[1, 2, 3],,,,, 3],, 4])
  [ 1, 2, 3, [ 1, 2, [ 1, 2, 3 ], 3 ], 4 ]

Also, look into spec/index.spec.js for usage.

License

MIT © 2018 Git Faf

Readme

Keywords

none

Package Sidebar

Install

npm i plug-them-holes

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

14.9 kB

Total Files

21

Last publish

Collaborators

  • iamanubhavsaini
  • git.faf