UNPKG

@kurtharriger/nel

Version:

Node.js Evaluation Loop (NEL): npm package to implement a Node.js REPL session

39 lines 215 kB
"use strict";/* * BSD 3-Clause License * * Copyright (c) 2015, Nicolas Riesco * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * *//** * Documentation for Javascript builtins adapted by Nicolas Riesco from the * Mozilla Developer Network (MDN) * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects}. * * @see Please, refer to the URLs within for attribution and licensing terms. */module.exports={"Array":{"description":"The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array","usage":"[element0, element1, ..., elementN]\nnew Array(element0, element1[, ...[, elementN]])\nnew Array(arrayLength)"},"Array.from":{"description":"The Array.from() method creates a new Array instance from an array-like or iterable object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from","usage":"Array.from(arrayLike[, mapFn[, thisArg]])\n\nParameters\n arrayLike\n An array-like or iterable object to convert to an array.\n mapFn\n Optional. Map function to call on every element of the array.\n thisArg\n Optional. Value to use as this when executing mapFn."},"Array.isArray":{"description":"The Array.isArray() method returns true if an object is an array, false if it is not.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray","usage":"Array.isArray(obj)\nParameters\n obj\n The object to be checked."},"Array.length":{"description":"The length property represents an unsigned, 32-bit integer that specifies the number of elements in an array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length"},"Array.observe":{"description":"The Array.observe() method is used for asynchronously observing changes to Arrays, similar to Object.observe() for objects. It provides a stream of changes in order of occurrence.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe","usage":"Array.observe(arr, callback)\nParameters\n arr\n The array to be observed.\n callback\n The function called each time changes are made, with the following\n argument: changes An array of objects each representing a\n change. The properties of these change objects are: name: The\n name of the property which was changed. object: The changed array\n after the change was made. type: A string indicating the type of\n change taking place. One of \"add\", \"update\", \"delete\", or\n \"splice\". oldValue: Only for \"update\" and \"delete\" types. The\n value before the change. index: Only for the \"splice\" type. The\n index at which the change occurred. removed: Only for the \"splice\"\n type. An array of the removed elements. addedCount: Only for the\n \"splice\" type. The number of elements added."},"Array.of":{"description":"The Array.of() method creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of","usage":"Array.of(element0[, element1[, ...[, elementN]]])\nParameters\n elementN\n Elements of which to create the array."},"Array.prototype":{"description":"The Array.prototype property represents the prototype for the Array constructor.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype"},"Array.prototype.concat":{"description":"The concat() method returns a new array comprised of the array on which it is called joined with the array(s) and/or value(s) provided as arguments.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat","usage":"var new_array = old_array.concat(value1[, value2[, ...[, valueN]]])\nParameters\n valueN\n Arrays and/or values to concatenate into a new array. See the\n discussion below for details."},"Array.prototype.copyWithin":{"description":"The copyWithin() method copies the sequence of array elements within the array to the position starting at target. The copy is taken from the index positions of the second and third arguments start and end. The end argument is optional and defaults to the length of the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin","usage":"arr.copyWithin(target, start[, end = this.length])\nParameters\n target\n Target start index position where to copy the elements to.\n start\n Source start index position where to start copying elements from.\n end\n Optional. Source end index position where to end copying elements\n from."},"Array.prototype.entries":{"description":"The entries() method returns a new Array Iterator object that contains the key/value pairs for each index in the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries","usage":"arr.entries()"},"Array.prototype.every":{"description":"The every() method tests whether all elements in the array pass the test implemented by the provided function.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every","usage":"arr.every(callback[, thisArg])\nParameters\n callback\n Function to test for each element, taking three arguments:\n currentValue The current element being processed in the\n array. index The index of the current element being\n processed in the array. array The array every was called\n upon.\n thisArg\n Optional. Value to use as this when executing callback."},"Array.prototype.fill":{"description":"The fill() method fills all the elements of an array from a start index to an end index with a static value.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill","usage":"arr.fill(value[, start = 0[, end = this.length]])\nParameters\n value\n Value to fill an array.\n start\n Optional. Start index.\n end\n Optional. End index."},"Array.prototype.filter":{"description":"The filter() method creates a new array with all elements that pass the test implemented by the provided function.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter","usage":"arr.filter(callback[, thisArg])\nParameters\n callback\n Function to test each element of the array. Invoked with arguments\n (element, index, array). Return true to keep the element, false\n otherwise.\n thisArg\n Optional. Value to use as this when executing callback."},"Array.prototype.find":{"description":"The find() method returns a value in the array, if an element in the array satisfies the provided testing function. Otherwise undefined is returned.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find","usage":"arr.find(callback[, thisArg])\nParameters\n callback\n Function to execute on each value in the array, taking three\n arguments: element The current element being processed in\n the array. index The index of the current element being\n processed in the array. array The array find was called\n upon.\n thisArg\n Optional. Object to use as this when executing callback."},"Array.prototype.findIndex":{"description":"The findIndex() method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 is returned.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex","usage":"arr.findIndex(callback[, thisArg])\nParameters\n callback\n Function to execute on each value in the array, taking three\n arguments: element The current element being processed in the\n array. index The index of the current element being processed in\n the array. array The array findIndex was called upon.\n thisArg\n Optional. Object to use as this when executing callback."},"Array.prototype.forEach":{"description":"The forEach() method executes a provided function once per array element.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach","usage":"arr.forEach(callback[, thisArg])\nParameters\n callback\n Function that produces an element of the new Array, taking three\n arguments: currentValue The current element being processed in\n the array. index The index of the current element being processed\n in the array. array The array forEach() was called upon.\n thisArg\n Optional. Value to use as this when executing callback."},"Array.prototype.includes":{"description":"The includes() method determines whether an array includes a certain element, returning true or false as appropriate.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes","usage":"array.includes(searchElement[, fromIndex])\nParameters\n searchElement\n The element to search for.\n fromIndex\n Optional. The position in this array at which to begin searching\n for searchElement; defaults to 0."},"Array.prototype.indexOf":{"description":"The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf","usage":"arr.indexOf(searchElement[, fromIndex = 0])\nParameters\n searchElement\n Element to locate in the array.\n fromIndex\n The index to start the search at. If the index is greater than or\n equal to the array's length, -1 is returned, which means the array\n will not be searched. If the provided index value is a negative\n number, it is taken as the offset from the end of the array. Note:\n if the provided index is negative, the array is still searched\n from front to back. If the calculated index is less than 0, then\n the whole array will be searched. Default: 0 (entire array is\n searched)."},"Array.prototype.join":{"description":"The join() method joins all elements of an array into a string.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join","usage":"str = arr.join([separator = ','])\nParameters\n separator\n Optional. Specifies a string to separate each element of the\n array. The separator is converted to a string if necessary. If\n omitted, the array elements are separated with a comma. If\n separator is an empty string all elements are joined without any\n characters in between them."},"Array.prototype.keys":{"description":"The keys() method returns a new Array Iterator that contains the keys for each index in the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/keys","usage":"arr.keys()"},"Array.prototype.lastIndexOf":{"description":"The lastIndexOf() method returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf","usage":"arr.lastIndexOf(searchElement[, fromIndex = arr.length])"},"Array.prototype.map":{"description":"The map() method creates a new array with the results of calling a provided function on every element in this array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map","usage":"arr.map(callback[, thisArg])\nParameters\n callback\n Function that produces an element of the new Array, taking three\n arguments: currentValue The current element being\n processed in the array. index The index of the current\n element being processed in the array. array The array map\n was called upon.\n thisArg\n Optional. Value to use as this when executing callback."},"Array.prototype.pop":{"description":"The pop() method removes the last element from an array and returns that element.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop","usage":"arr.pop()"},"Array.prototype.push":{"description":"The push() method adds one or more elements to the end of an array and returns the new length of the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push","usage":"arr.push(element1, ..., elementN)\nParameters\n elementN\n The elements to add to the end of the array.\nReturns\nThe new length property of the object upon which the method was called."},"Array.prototype.reduce":{"description":"The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single value.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce","usage":"arr.reduce(callback[, initialValue])\nParameters\n callback\n Function to execute on each value in the array, taking four\n arguments: previousValue The value previously returned in the\n last invocation of the callback, or initialValue, if supplied.\n (See below.) currentValue The current element being processed in\n the array. index The index of the current element being processed\n in the array. array The array reduce was called upon.\n initialValue\n Optional. Object to use as the first argument to the first call of\n the callback."},"Array.prototype.reduceRight":{"description":"The reduceRight() method applies a function against an accumulator and each value of the array (from right-to-left) has to reduce it to a single value.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/ReduceRight","usage":"arr.reduceRight(callback[, initialValue])\nParameters\n callback\n Function to execute on each value in the array, taking four\n arguments: previousValue The value previously returned in the\n last invocation of the callback, or initialValue, if supplied.\n (See below.) currentValue The current element being processed in\n the array. index The index of the current element being processed\n in the array. array The array reduce was called upon.\n initialValue\n Optional. Object to use as the first argument to the first call of\n the callback."},"Array.prototype.reverse":{"description":"The reverse() method reverses an array in place. The first array element becomes the last and the last becomes the first.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse","usage":"arr.reverse()"},"Array.prototype.shift":{"description":"The shift() method removes the first element from an array and returns that element. This method changes the length of the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift","usage":"arr.shift()"},"Array.prototype.slice":{"description":"The slice() method returns a shallow copy of a portion of an array into a new array object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice","usage":"arr.slice([begin[, end]])"},"Array.prototype.some":{"description":"The some() method tests whether some element in the array passes the test implemented by the provided function.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some","usage":"arr.some(callback[, thisArg])\nParameters\n callback\n Function to test for each element, taking three arguments:\n currentValue The current element being processed in the array.\n index The index of the current element being processed in the\n array. array The array some() was called upon.\n thisArg\n Optional. Value to use as this when executing callback."},"Array.prototype.sort":{"description":"The sort() method sorts the elements of an array in place and returns the array. The sort is not necessarily stable. The default sort order is according to string Unicode code points.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort","usage":"arr.sort([compareFunction])\nParameters\n compareFunction\n Optional. Specifies a function that defines the sort order. If\n omitted, the array is sorted according to each character's Unicode\n code point value, according to the string conversion of each\n element."},"Array.prototype.splice":{"description":"The splice() method changes the content of an array by removing existing elements and/or adding new elements.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice","usage":"array.splice(start, deleteCount[, item1[, item2[, ...]]])\n\nParameters\n start\n Index at which to start changing the array. If greater than the\n length of the array, actual starting index will be set to the\n length of the array. If negative, will begin that many elements\n from the end.\n deleteCount\n An integer indicating the number of old array elements to remove.\n If deleteCount is 0, no elements are removed. In this case, you\n should specify at least one new element. If deleteCount is greater\n than the number of elements left in the array starting at start,\n then all of the elements through the end of the array will be\n deleted.\n itemN\n The element to add to the array. If you don't specify any\n elements, splice() will only remove elements from the array.\nReturns\nAn array containing the deleted elements. If only one element is removed, an array of one element is returned. If no elements are removed, an empty array is returned."},"Array.prototype.toLocaleString":{"description":"The toLocaleString() method returns a string representing the elements of the array. The elements are converted to Strings using their toLocaleString methods and these Strings are separated by a locale-specific String (such as a comma).","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString","usage":"arr.toLocaleString();"},"Array.prototype.toSource":{"description":"The toSource() method returns a string representing the source code of the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSource","usage":"arr.toSource()"},"Array.prototype.toString":{"description":"The toString() method returns a string representing the specified array and its elements.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString","usage":"arr.toString()"},"Array.prototype.unshift":{"description":"The unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift","usage":"arr.unshift([element1[, ...[, elementN]]])\nParameters\n elementN\n The elements to add to the front of the array.\nReturns\nThe new length property of the object upon which the method was called."},"Array.prototype.values":{"description":"The values() method returns a new Array Iterator object that contains the values for each index in the array.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values","usage":"arr.values()"},"Array.prototype[@@iterator]":{"description":"The initial value of the @@iterator property is the same function object as the initial value of the values() property.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/@@iterator","usage":"arr[Symbol.iterator]()"},"ArrayBuffer":{"description":"The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You can not directly manipulate the contents of an ArrayBuffer; instead, you create one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer","usage":"new ArrayBuffer(length)\n\nParameters\n length\n The size, in bytes, of the array buffer to create.\nReturns\nA new ArrayBuffer object of the specified size. Its contents are initialized to 0."},"ArrayBuffer.isView":{"description":"The ArrayBuffer.isView() method returns true if arg is a view one of the ArrayBuffer views, such as typed array objects or a DataView; false otherwise.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView","usage":"ArrayBuffer.isView(arg)\nParameters\n arg\n The argument to be checked."},"ArrayBuffer.prototype":{"description":"The ArrayBuffer.prototype property represents the prototype for the ArrayBuffer object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/prototype"},"ArrayBuffer.prototype.byteLength":{"description":"The byteLength accessor property represents the length of an ArrayBuffer in bytes.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength"},"ArrayBuffer.prototype.slice":{"description":"The slice() method returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice","usage":"arraybuffer.slice(begin[, end])\nParameters\n begin\n Zero-based byte index at which to begin slicing.\nReturns\nA new ArrayBuffer object."},"ArrayBuffer.transfer":{"description":"The static ArrayBuffer.transfer() method returns a new ArrayBuffer whose contents are taken from the oldBuffer's data and then is either truncated or zero-extended by newByteLength. If newByteLength is undefined, the byteLength of the oldBuffer is used. This operation leaves oldBuffer in a detached state.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer","usage":"ArrayBuffer.transfer(oldBuffer [, newByteLength]);\nParameters\n oldBuffer\n An ArrayBuffer object from which to transfer from.\n newByteLength\n The byte length of the new ArrayBuffer object."},"Boolean":{"description":"The Boolean object is an object wrapper for a boolean value.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean","usage":"new Boolean([value])\nParameters\n value\n Optional. The initial value of the Boolean object."},"Boolean.prototype":{"description":"The Boolean.prototype property represents the prototype for the Boolean constructor.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/prototype"},"Boolean.prototype.toSource":{"description":"The toSource() method returns a string representing the source code of the object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toSource","usage":"booleanObj.toSource()\nBoolean.toSource()"},"Boolean.prototype.toString":{"description":"The toString() method returns a string representing the specified Boolean object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString","usage":"bool.toString()"},"Boolean.prototype.valueOf":{"description":"The valueOf() method returns the primitive value of a Boolean object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf","usage":"bool.valueOf()"},"DataView":{"description":"The DataView view provides a low-level interface for reading data from and writing it to an ArrayBuffer.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView","usage":"new DataView(buffer [, byteOffset [, byteLength]])\nParameters\n buffer\n An existing ArrayBuffer to use as the storage for the new DataView\n object.\n byteOffset Optional\n The offset, in bytes, to the first byte in the specified buffer\n for the new view to reference. If not specified, the view of the\n buffer will start with the first byte.\n byteLength Optional\n The number of elements in the byte array. If unspecified, length\n of the view will match the buffer's length.\nReturns\nA new DataView object representing the specified data buffer."},"DataView.prototype":{"description":"The DataView.prototype property represents the prototype for the DataView object.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/prototype"},"DataView.prototype.buffer":{"description":"The buffer accessor property represents the ArrayBuffer referenced by the DataView at construction time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/buffer"},"DataView.prototype.byteLength":{"description":"The byteLength accessor property represents the length (in bytes) of this view from the start of its ArrayBuffer.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteLength"},"DataView.prototype.byteOffset":{"description":"The byteOffset accessor property represents the offset (in bytes) of this view from the start of its ArrayBuffer.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteOffset"},"DataView.prototype.getFloat32":{"description":"The getFloat32() method gets a signed 32-bit integer (float) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32","usage":"dataview.getFloat32(byteOffset [, littleEndian])"},"DataView.prototype.getFloat64":{"description":"The getFloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64","usage":"dataview.getFloat64(byteOffset [, littleEndian])"},"DataView.prototype.getInt16":{"description":"The getInt16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt16","usage":"dataview.getInt16(byteOffset [, littleEndian])"},"DataView.prototype.getInt32":{"description":"The getInt32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32","usage":"dataview.getInt32(byteOffset [, littleEndian])"},"DataView.prototype.getInt8":{"description":"The getInt8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt8","usage":"dataview.getInt8(byteOffset)"},"DataView.prototype.getUint16":{"description":"The getUint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint16","usage":"dataview.getUint16(byteOffset [, littleEndian])"},"DataView.prototype.getUint32":{"description":"The getUint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32","usage":"dataview.getUint32(byteOffset [, littleEndian])"},"DataView.prototype.getUint8":{"description":"The getUint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint8","usage":"dataview.getUint8(byteOffset)"},"DataView.prototype.setFloat32":{"description":"The setFloat32() method stores a signed 32-bit integer (float) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat32","usage":"dataview.setFloat32(byteOffset, value [, littleEndian])"},"DataView.prototype.setFloat64":{"description":"The setFloat64() method stores a signed 64-bit integer (double) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat64","usage":"dataview.setFloat64(byteOffset, value [, littleEndian])"},"DataView.prototype.setInt16":{"description":"The setInt16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt16","usage":"dataview.setInt16(byteOffset, value [, littleEndian])"},"DataView.prototype.setInt32":{"description":"The setInt32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt32","usage":"dataview.setInt32(byteOffset, value [, littleEndian])"},"DataView.prototype.setInt8":{"description":"The setInt8() method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt8","usage":"dataview.setInt8(byteOffset, value)"},"DataView.prototype.setUint16":{"description":"The setUint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint16","usage":"dataview.setUint16(byteOffset, value [, littleEndian])"},"DataView.prototype.setUint32":{"description":"The setUint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32","usage":"dataview.setUint32(byteOffset, value [, littleEndian])"},"DataView.prototype.setUint8":{"description":"The setUint8() method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the DataView.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint8","usage":"dataview.setUint8(byteOffset, value)"},"Date":{"description":"Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date","usage":"new Date();\nnew Date(value);\nnew Date(dateString);\nnew Date(year, month[, day[, hour[, minutes[, seconds[, milliseconds]]]]]);\n\nParameters\n value\n Integer value representing the number of milliseconds since 1\n January 1970 00:00:00 UTC (Unix Epoch).\n dateString\n String value representing a date. The string should be in a format\n recognized by the Date.parse() method (IETF-compliant RFC 2822\n timestamps and also a version of ISO8601).\n year\n Integer value representing the year. Values from 0 to 99 map to\n the years 1900 to 1999. See the example below.\n month\n Integer value representing the month, beginning with 0 for January\n to 11 for December.\n day\n Optional. Integer value representing the day of the month.\n hour\n Optional. Integer value representing the hour of the day.\n minute\n Optional. Integer value representing the minute segment of a time.\n second\n Optional. Integer value representing the second segment of a time.\n millisecond\n Optional. Integer value representing the millisecond segment of a\n time."},"Date.UTC":{"description":"The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC","usage":"Date.UTC(year, month[, day[, hour[, minute[, second[, millisecond]]]]])\nParameters\n year\n A year after 1900.\n month\n An integer between 0 and 11 representing the month.\n day\n Optional. An integer between 1 and 31 representing the day of the\n month.\n hour\n Optional. An integer between 0 and 23 representing the hours.\n minute\n Optional. An integer between 0 and 59 representing the minutes.\n second\n Optional. An integer between 0 and 59 representing the seconds.\n millisecond\n Optional. An integer between 0 and 999 representing the\n milliseconds."},"Date.now":{"description":"The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now","usage":"var timeInMs = Date.now();"},"Date.parse":{"description":"The Date.parse() method parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse","usage":"Date.parse(dateString)\nParameters\n dateString\n A string representing an RFC2822 or ISO 8601 date (other formats\n may be used, but results may be unexpected)."},"Date.prototype":{"description":"The Date.prototype property represents the prototype for the Date constructor.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/prototype"},"Date.prototype.getDate":{"description":"The getDate() method returns the day of the month for the specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate","usage":"dateObj.getDate()"},"Date.prototype.getDay":{"description":"The getDay() method returns the day of the week for the specified date according to local time, where 0 represents Sunday.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay","usage":"dateObj.getDay()"},"Date.prototype.getFullYear":{"description":"The getFullYear() method returns the year of the specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear","usage":"dateObj.getFullYear()"},"Date.prototype.getHours":{"description":"The getHours() method returns the hour for the specified date, according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours","usage":"dateObj.getHours()"},"Date.prototype.getMilliseconds":{"description":"The getMilliseconds() method returns the milliseconds in the specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds","usage":"dateObj.getMilliseconds()"},"Date.prototype.getMinutes":{"description":"The getMinutes() method returns the minutes in the specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes","usage":"dateObj.getMinutes()"},"Date.prototype.getMonth":{"description":"The getMonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year).","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth","usage":"dateObj.getMonth()"},"Date.prototype.getSeconds":{"description":"The getSeconds() method returns the seconds in the specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds","usage":"dateObj.getSeconds()"},"Date.prototype.getTime":{"description":"The getTime() method returns the numeric value corresponding to the time for the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime","usage":"dateObj.getTime()"},"Date.prototype.getTimezoneOffset":{"description":"The getTimezoneOffset() method returns the time-zone offset from UTC, in minutes, for the current locale.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset","usage":"dateObj.getTimezoneOffset()"},"Date.prototype.getUTCDate":{"description":"The getUTCDate() method returns the day (date) of the month in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate","usage":"dateObj.getUTCDate()"},"Date.prototype.getUTCDay":{"description":"The getUTCDay() method returns the day of the week in the specified date according to universal time, where 0 represents Sunday.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay","usage":"dateObj.getUTCDay()"},"Date.prototype.getUTCFullYear":{"description":"The getUTCFullYear() method returns the year in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear","usage":"dateObj.getUTCFullYear()"},"Date.prototype.getUTCHours":{"description":"The getUTCHours() method returns the hours in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours","usage":"dateObj.getUTCHours()"},"Date.prototype.getUTCMilliseconds":{"description":"The getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds","usage":"dateObj.getUTCMilliseconds()"},"Date.prototype.getUTCMinutes":{"description":"The getUTCMinutes() method returns the minutes in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes","usage":"dateObj.getUTCMinutes()"},"Date.prototype.getUTCMonth":{"description":"The getUTCMonth() returns the month of the specified date according to universal time, as a zero-based value (where zero indicates the first month of the year).","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth","usage":"dateObj.getUTCMonth()"},"Date.prototype.getUTCSeconds":{"description":"The getUTCSeconds() method returns the seconds in the specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds","usage":"dateObj.getUTCSeconds()"},"Date.prototype.getYear":{"description":"The getYear() method returns the year in the specified date according to local time. Because getYear() does not return full years (\"year 2000 problem\"), it is no longer used and has been replaced by the getFullYear() method.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getYear","usage":"dateObj.getYear()"},"Date.prototype.setDate":{"description":"The setDate() method sets the day of the month for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate","usage":"dateObj.setDate(dayValue)\nParameters\n dayValue\n An integer representing the day of the month."},"Date.prototype.setFullYear":{"description":"The setFullYear() method sets the full year for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear","usage":"dateObj.setFullYear(yearValue[, monthValue[, dayValue]])\nParameters\n yearValue\n An integer specifying the numeric value of the year, for example,\n 1995.\n monthValue\n Optional. An integer between 0 and 11 representing the months\n January through December.\n dayValue\n Optional. An integer between 1 and 31 representing the day of the\n month. If you specify the dayValue parameter, you must also\n specify the monthValue."},"Date.prototype.setHours":{"description":"The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours","usage":"dateObj.setHours(hoursValue[, minutesValue[, secondsValue[, msValue]]])\nParameters\n hoursValue\n An integer between 0 and 23, representing the hour.\n minutesValue\n Optional. An integer between 0 and 59, representing the minutes.\n secondsValue\n Optional. An integer between 0 and 59, representing the seconds.\n If you specify the secondsValue parameter, you must also specify\n the minutesValue.\n msValue\n Optional. A number between 0 and 999, representing the\n milliseconds. If you specify the msValue parameter, you must also\n specify the minutesValue and secondsValue."},"Date.prototype.setMilliseconds":{"description":"The setMilliseconds() method sets the milliseconds for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds","usage":"dateObj.setMilliseconds(millisecondsValue)\nParameters\n millisecondsValue\n A number between 0 and 999, representing the milliseconds."},"Date.prototype.setMinutes":{"description":"The setMinutes() method sets the minutes for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes","usage":"dateObj.setMinutes(minutesValue[, secondsValue[, msValue]])\nParameters\n minutesValue\n An integer between 0 and 59, representing the minutes.\n secondsValue\n Optional. An integer between 0 and 59, representing the seconds.\n If you specify the secondsValue parameter, you must also specify\n the minutesValue.\n msValue\n Optional. A number between 0 and 999, representing the\n milliseconds. If you specify the msValue parameter, you must also\n specify the minutesValue and secondsValue."},"Date.prototype.setMonth":{"description":"The setMonth() method sets the month for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth","usage":"dateObj.setMonth(monthValue[, dayValue])"},"Date.prototype.setSeconds":{"description":"The setSeconds() method sets the seconds for a specified date according to local time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds","usage":"dateObj.setSeconds(secondsValue[, msValue])\nParameters\n secondsValue\n An integer between 0 and 59, representing the seconds.\n msValue\n Optional. A number between 0 and 999, representing the\n milliseconds."},"Date.prototype.setTime":{"description":"The setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime","usage":"dateObj.setTime(timeValue)\nParameters\n timeValue\n An integer representing the number of milliseconds since 1 January\n 1970, 00:00:00 UTC."},"Date.prototype.setUTCDate":{"description":"The setUTCDate() method sets the day of the month for a specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate","usage":"dateObj.setUTCDate(dayValue)\nParameters\n dayValue\n An integer from 1 to 31, representing the day of the month."},"Date.prototype.setUTCFullYear":{"description":"The setUTCFullYear() method sets the full year for a specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear","usage":"dateObj.setUTCFullYear(yearValue[, monthValue[, dayValue]])\nParameters\n yearValue\n An integer specifying the numeric value of the year, for example,\n 1995.\n monthValue\n Optional. An integer between 0 and 11 representing the months\n January through December.\n dayValue\n Optional. An integer between 1 and 31 representing the day of the\n month. If you specify the dayValue parameter, you must also\n specify the monthValue."},"Date.prototype.setUTCHours":{"description":"The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours","usage":"dateObj.setUTCHours(hoursValue[, minutesValue[, secondsValue[, msValue]]])\nParameters\n hoursValue\n An integer between 0 and 23, representing the hour.\n minutesValue\n Optional. An integer between 0 and 59, representing the minutes.\n secondsValue\n Optional. An integer between 0 and 59, representing the seconds.\n If you specify the secondsValue parameter, you must also specify\n the minutesValue.\n msValue\n Optional. A number between 0 and 999, representing the\n milliseconds. If you specify the msValue parameter, you must also\n specify the minutesValue and secondsValue."},"Date.prototype.setUTCMilliseconds":{"description":"The setUTCMilliseconds() method sets the milliseconds for a specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds","usage":"dateObj.setUTCMilliseconds(millisecondsValue)\nParameters\n millisecondsValue\n A number between 0 and 999, representing the milliseconds."},"Date.prototype.setUTCMinutes":{"description":"The setUTCMinutes() method sets the minutes for a specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes","usage":"dateObj.setUTCMinutes(minutesValue[, secondsValue[, msValue]])\nParameters\n minutesValue\n An integer between 0 and 59, representing the minutes.\n secondsValue\n Optional. An integer between 0 and 59, representing the seconds.\n If you specify the secondsValue parameter, you must also specify\n the minutesValue.\n msValue\n Optional. A number between 0 and 999, representing the\n milliseconds. If you specify the msValue parameter, you must also\n specify the minutesValue and secondsValue."},"Date.prototype.setUTCMonth":{"description":"The setUTCMonth() method sets the month for a specified date according to universal time.","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth","usage":"dateObj.setUTCMonth(monthValue[, dayValue])\nParameters\n monthValue\n An integer between 0 and 11, representing the months January\n through December.\n dayValue\n Optional. An integer from 1 to 31, representing the day of the\n month."},"Dat