UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

6 lines (4 loc) 200 B
'use strict'; module.exports = function array([str]) { return str.replace(/\r?\n/g, ',').replace(/[^0-9,]/g,'').replace(/,+/g,',').split(',').filter(value => value).map(value => Number(value)); };