index.js
/**
  * some: A function will call upon the object or array's element. 
  * If at least one element returns true from the function, it will return true. If all the elements are false, then it will return false. 
  *     
  * If there is no callback function given, it will return true for truthy results.
  *If there is no callback function given, it will return false for falsey results.
  * 
  * @param {Array or Object} collection: an array or object
  * @param {function} fun: a function that will test the elements
  * 
  * @return {true}: If at least one element is true
  * @return {false}: if all elements are false
  * 
  * 
  */
A function will call upon the object or array's element.
If at least one element returns true from the function, it will return true. If all the elements are false, then it will return false.

If there is no callback function given, it will return true for truthy results.
If there is no callback function given, it will return false for falsey results.

@param {Array or Object} collection: an array or object
@param {function} fun: a function that will test the elements

@return {true}: If at least one element is true
@return {false}: if all elements are false
A function will call upon the object or array ' s element . If at least one element returns true from the function it will return true . If all the elements are false then it will return false . If there is no callback function given it will return true for truthy results . If there is no callback function given it will return false for falsey results . @param { Array or Object } collection : an array or object @param { function } fun : a function that will test the elements @return { true } : If at least one element is true @return { false } : if all elements are false
function some(collection,fun){
   if (typeof(fun) !== 'function') {
     return contains(collection, true);
  }
   var newArray = [];
   newArray = map(collection, fun);
   return contains(newArray, true);
}
function some ( collection , fun ) { if ( typeof ( fun ) !== 'function' ) { return contains ( collection , true ) ; } var newArray = [ ] ; newArray = map ( collection , fun ) ; return contains ( newArray , true ) ; }
some: A function will call upon the object or array's element.
some : A function will call upon the object or array ' s element .