Unwrap the values in a JSONP function.
npm install unwrap-jsonp
const unwrapJsonp = require("unwrap-jsonp")
unwrapJsonp(`fn({a: "b"})`)
//=> {a: "b"}
unwrapJsonp(`fn("a", "b")`, {multiArgs: true})
//=> ["a", "b"]
Type: string
The jsonp to parse.
Type: object
Type: boolean
Default: false
Return an array of the function arguments instead of just the first one.