dist/bbn.js
/**
     * Executes the provided function on each property of the given object.
     *
     * @method   iterate
     * @global
     * @example
     * ```javascript
     * //["value1", 2]
     * let arr = [];
     * bbn.fn.iterate({field1: "value1", field2: 2}, (val, idx) => {
     *   arr.push(value);
     * });
     * ```
     * @memberof bbn.fn
     * @param    {(Object|Number)} obj       The object to loop on
     * @param    {Function}        fn        The function, gets the array's element and the index as arguments
     * @param    {Boolean}         noPrivate If set to true the _private_ properties won't be included
     * @returns  {undefined}
     */
Executes the provided function on each property of the given object.
Executes the provided function on each property of the given object .
iterate(obj, fn, noPrivate) {
      if ((obj !== null) && (typeof obj === 'object')) {
        let iter = Object.keys(noPrivate ? bbn.fn.removePrivateProp(obj) : obj);
        bbn.fn.each(iter, prop => {
          if (fn(obj[prop], prop) === false) {
            return false;
          }
        });
      }
      return;
    }
iterate ( obj , fn , noPrivate ) { if ( ( obj !== null ) && ( typeof obj === 'object' ) ) { let iter = Object . keys ( noPrivate ? bbn . fn . removePrivateProp ( obj ) : obj ) ; bbn . fn . each ( iter , prop => { if ( fn ( obj [ prop ] , prop ) === false ) { return false ; } } ) ; } return ; }
Executes the provided function on each property of the given object.
Executes the provided function on each property of the given object .