Parses a string of JavaScript code.

// Creates a function that computes a complex operation
const f = Chalkboard.comp.parse("(a, b) => a*a - b*b");
  • Parameters

    • str: string

      The string

    Returns Function