cgtools

1.0.3 • Public • Published

CGTools

A small set of extensions for common structures. prototype is used here and it might not work with other libs.

It is a lib for us :)

Installation

npm install --save cgtools

Usage

 
require('cgtools')
 
[1,2,3].first() // returns 1
[1,2,3].last() // returns 3
 
[0,1,2,3,4,5].binaryIndexOfClosest(3.1) // returns 3
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    4
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i cgtools

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jonyrock