Polyfills

Verge3D includes polyfills for the following functions and constants.

Number.EPSILON

The difference between one and the smallest value greater than one that can be represented as a Number. MDN reference.

Math.sign(x)

If the argument is a positive number, negative number, positive zero or negative zero, the function will return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned. MDN reference.

Function.prototype.name(x)

Returns the name of a function, or (before ES6 implementations) an empty string for anonymous functions. MDN reference.

Object.assign(target, ...sources)

The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object. MDN reference.

Source

For more info on how to obtain the source code of this module see this page.