simplify-js for flat number arrays ([ x1, y1, x2, y2,...]).
npm i simplify-flat-array
Like simplify-js, except for the points format. See simplify-js demo/doku
simplify(points, tolerance, highQuality)
points - [Array] - [ x1, y1, x2, y2,...].
tolerance - Number
highQuality Boolean - includes distance-based processing if true
The return value is also a flat number array.
npm run test
The tests from simplify-js are included, only changed the points format.