Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 603 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 603 Bytes

fb-dash

A thin wrapper around lodash that allows its functions to be invoked as virtual methods using the proposed function bind syntax.

Install

npm install fb-dash

Example:

import {invoke, takeWhile, sample, each} from "fb-dash";

["foo", "bar", "fizz", "buzzle", "bazz", "baaaaaaaaa"]
  ::takeWhile((s) => s.length < 5)
  ::invoke("replace", "b", "q")
  ::each((s) => console.log(s));

The original lodash object can be accessed via the lodash key in the fodash exports.