Javascript Array isNumberArray()

Description

Javascript Array isNumberArray()


'use strict';//from  w  w w  . j  a v  a  2s .co  m

Array.prototype.isNumberArray = function() {
    return !this.some(x => typeof x != 'number');
}



PreviousNext

Related