JSPM

  • Created
  • Published
  • Downloads 1439
  • Score
    100M100P100Q106562F
  • License MIT

Wrapper around object-hash that restricts allowed values

Package Exports

  • object-hash-strict

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-hash-strict) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

object-hash-strict

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

Wrapper around object-hash that restricts allowed values

Install

Install with npm:

$ npm install --save object-hash-strict

Usage

Use exactly as object-hash.

Additional Options

The following options can be provided on top of the existing object-hash options.

allowedUndefined

Type: Array
Default: []

Provide list of keys that are allowed to be undefined.

How it's different from object-hash

  • Will throw error if a "real" key has an unknown value
  • Does not currently deal with "real" path recursion

** Real means a proper object hierarchy, not hidden properties, symbols, etc