repl.txt (745B)
1 2 {{alias}}( value ) 3 Tests if a value is a RangeError object. 4 5 This function should *not* be considered robust. While the function should 6 always return `true` if provided a RangeError (or a descendant) object, 7 false positives may occur due to the fact that the RangeError constructor 8 inherits from Error and has no internal class of its own. Hence, RangeError 9 impersonation is possible. 10 11 Parameters 12 ---------- 13 value: any 14 Value to test. 15 16 Returns 17 ------- 18 bool: boolean 19 Boolean indicating whether value is a RangeError object. 20 21 Examples 22 -------- 23 > var bool = {{alias}}( new RangeError( 'beep' ) ) 24 true 25 > bool = {{alias}}( {} ) 26 false 27 28 See Also 29 -------- 30