docs: function filterArray(fn, array) {
    let filteredItems = [],
        index = -1;
  
    while (++index < array.length) {
      if (fn(array[index], index, array)) {
        filteredItems[filteredItems.length] = array[index];
      }
    }
  
    return filteredItems;
  }