Sabtu, 26 Januari 2019

Isarray() Inwards Javascript - How To Cheque Is Array Or Not

     The Array.isArray() method returns truthful if an object is an array, simulated if it is not. It volition banking concern gibe the specified value is array or not, if it is array supply true value as well as if non supply false.

Syntax
    Array.isArray(variable or value);
Example
    var ar=[10,20,30];    alert(Array.isArray(ar));


Example Program:- (Editor)


Editor is Loading...

Advertisement

Tidak ada komentar:

Posting Komentar