AmitDiwan has Published 10744 Articles

JavaScript Symbol.keyFor() function

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:57:09

89 Views

The JavaScript Symbol.iskeyFor() is used for finding the key that is associated with a given symbol. The key is retrieved from the global symbol registry.Following is the code for Symbol.keyFor() function −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, ... Read More

JavaScript Symbol.isConcatSpreadable symbol

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:52:36

88 Views

The Symbol.isConcatSpreadable symbol is used to specify if a nested array should be flattened to its individual array elements or not when using the Array.prototype.concat() method.Following is the code for Symbol.isConcatSpreadable symbol −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, ... Read More

JavaScript array.keys() method

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:49:07

149 Views

The JavaScript array.keys() creates an array iterator object having only the keys of an arrayFollowing is the code for the array.keys() method −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .sample {     ... Read More

JavaScript Array prototype Constructor

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:37:41

222 Views

The JavaScript Array prototype constructor is for adding new methods and properties to array object. These properties and methods will be available for each array.Following is the code for the array prototype constructor −Example Live Demo Document    body {       font-family: "Segoe UI", ... Read More

JavaScript Generator

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:30:08

352 Views

A generator function uses the yield keyword to generate results and maintain its state even after returning so that the next time when it is called it can resume immediately from the last yield run. Each call to the generator function will send a value back to the caller.Following is ... Read More

JavaScript DataView()

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:09:35

185 Views

The JavaScript DataView allows us for reading and writing in multiple number types in binary ArrayBuffer by providing a low level interface. We cannot manipulate ArrayBuffer directly without using DataView().Following is the code for implementing JavaScript DataView −Example Live Demo Document    body {     ... Read More

JavaScript Cursor property

AmitDiwan

AmitDiwan

Updated on 08-May-2020 11:05:17

198 Views

The cursor property is sets or returns the cursor type that will be displayed for the cursor property.Following is the code for implementing JavaScript Cursor property −Example Live Demo    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    } JavaScript ... Read More

JavaScript Array.from() Method

AmitDiwan

AmitDiwan

Updated on 08-May-2020 10:59:07

149 Views

The Array.from() creates a new array object from a given array instance.Following is the code for the array from() function −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .sample {       font-size: ... Read More

Array findIndex() function in JavaScript

AmitDiwan

AmitDiwan

Updated on 08-May-2020 10:46:54

1K+ Views

The findIndex() function in JavaScript returns the index of the first element value that satisfy a given condition in an array.Following is the code for the array find() function −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; ... Read More

JavaScript Array.isArray() method

AmitDiwan

AmitDiwan

Updated on 08-May-2020 10:41:18

148 Views

The JavaScript Array.isArray() method is used to check if an object is an array or not.Following is the code for the Array.isArray() method −Example Live Demo Document    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    }    .sample {   ... Read More

Advertisements