javascript : Array .min
javascript : Array .min
Target:
Applicable with Array Data Type.
Description :
It traverse array and return minimum value.
Note: If array is empty then return undefined .
Syntax:
[] .min
Usase:
- [1,2,3,4,5,2,8,3,1].min
It return 1 - ['z','b','x','a','c'].min
It return 'a'
Download MYJS.js
MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.
Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.
Comments
Post a Comment