JSON.parse: JSON text to a JavaScript value
JSON.parse reads text in the strict JSON grammar and returns its JavaScript value, while an optional reviver can transform the result from leaves to root.
CKTIS / JavaScript
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
JSON.parse reads text in the strict JSON grammar and returns its JavaScript value, while an optional reviver can transform the result from leaves to root.
JSON.stringify serializes a JavaScript value to JSON text, with an optional replacer to select or transform data and space to control indentation.
Map.groupBy iterates an iterable, computes a key for every element, and returns a Map whose values are arrays preserving input order.
The clear method removes all key–value pairs from a Map in place, makes its observed size zero, and returns undefined.
The delete method removes the Map entry matching a supplied key and returns true only when such an entry existed.
The entries method returns a live iterator of [key, value] pairs in Map insertion order and is the default Map iteration method.
The forEach method calls a callback for every Map entry in insertion order, passing the value, key, and the Map itself.
The get method returns the value stored under a matching Map key, or undefined when no such entry exists.
The has method returns a boolean indicating whether a Map contains an entry for the supplied key.
The keys method returns a live iterator over Map keys in insertion order without copying their associated values.
The set method adds or updates a key–value pair in a Map and returns that same Map, enabling chaining.
The size property reads the current number of key–value entries in a Map as a non-negative integer.
The values method returns a live iterator over Map values in the insertion order of their corresponding keys.
Math.abs converts its argument to Number and returns its non-negative absolute value, with defined behavior for zero, NaN, and infinities.
Math.acos returns the inverse cosine of a number in radians, with real domain -1 through 1 and result 0 through π.
Math.asin returns the inverse sine of a number in radians, with real domain -1 through 1 and result -π/2 through π/2.
Math.atan returns the inverse tangent of a number in radians, ranging from -π/2 to π/2 over the entire real line.
Math.atan2 returns the directed angle of point (x, y) from the positive x-axis in radians while retaining quadrant information.
Math.ceil converts its argument to Number and returns the smallest integral numeric value that is not less than the input.
Math.cos converts an angle in radians to Number and returns an approximate cosine in the range -1 through 1.
Math.E is an immutable Number property approximating Euler’s number e, the base of the natural logarithm.
Math.exp converts its argument to Number and returns an approximation of e raised to that power.
Math.floor converts its argument to Number and returns the greatest integral numeric value that is not greater than the input.
Math.hypot converts any number of components to Number and stably computes the square root of their sum of squares.