smallest-element
A JavaScript Package for finding the smallest element of an array.
Features
npm
Install
npm install --save smallest-element
Scripts Tag
For Development
<script src="https://rawgit.com/Prosen-Ghosh/smallest-element/master/smallest.js"></script>
For Production
<script src="https://cdn.rawgit.com/Prosen-Ghosh/smallest-element/9406abf2/smallest.js"></script>
Usage
const small = ; ;//=> -10 ;//=> -10 ;//=> -100 ;//=> null ; //withour parameter this function will throw a type error//=> TypeError: smallest() expects an array parameter
Author
Prosen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
License
- MIT