g.js — graphical objects for JavaScript

makeNumbersmakeNumbers

Transform a string to a list of numbers.

g.makeNumbers('1, 2, 3', ',');

Parameters

  • s: The input string, which contains a list of numbers.
  • separator: The separation character.