Javascript Array isNumberArray()
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'); }