flatten-point-ar
v0.0.1
Published
point array [[x,y], [x1, y1], ... , [xn, yn]] to flat array [x, y, x1, y1 ,... , xn, yn]
Downloads
3
Readme
flatten-2D-point-ar
Deprecated - with browserify I recommend using require('lodash/array/flatten')
- this will only include lodash's flatten in the bundle
Simple point array to 1D-array module
Install
$ npm install flatten-point-ar
Usage
flatten = require('flatten-point-ar')
flatten([[1,2], [3,4], [5,6]]) // => [1, 2, 3, 4, 5, 6]