/case-parser

Parses your object, modifying it for defined cases that apply.

Primary LanguageJavaScriptMIT LicenseMIT

Build Status js-standard-style npm version Coverage Status

Parses your object, modifying it for defined cases that apply.

var updated = case-parser(obj, cases, filter)

Takes an object and merges enabled cases and removes disabled cases in the object

  • obj (object) - original object
  • cases (object) - cases object
  • filter (function) - (optional) filter properties to ignore
  • returns (object) updated - obj