https://github.com/corpglory/cgtools
A set of extension collected from variety computer graphics apps
https://github.com/corpglory/cgtools
javascript toolset
Last synced: 10 months ago
JSON representation
A set of extension collected from variety computer graphics apps
- Host: GitHub
- URL: https://github.com/corpglory/cgtools
- Owner: CorpGlory
- License: mit
- Created: 2017-02-18T13:40:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-19T15:40:08.000Z (almost 9 years ago)
- Last Synced: 2025-03-07T16:02:51.052Z (10 months ago)
- Topics: javascript, toolset
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
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
```