docs: function partitionArray(fn, array) {
    const reducedPartitions = reduce(
      (partitions, item, index) => {
        getCorrectPartition(partitions, fn(item, index, array)).push(item);
  
        return partitions;
      },
      {
        falsy: [],
        truthy: [],
      },
      array
    );
  
    return [reducedPartitions.truthy, reducedPartitions.falsy];
  }