JSPM

@jswork/next-safe-assign

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q18364F
  • License MIT

Safe assign for next.

Package Exports

  • @jswork/next-safe-assign

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 (@jswork/next-safe-assign) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

next-safe-assign

Safe assign for next.

version license size download

installation

npm install -S @jswork/next-safe-assign

usage

import '@jswork/next-safe-assign';

const res = safeAssign(
  { a: 1, b: 2 },
  { c: 2, a: '' },
  (key, value) => {
    // you can customize your ignore function
    return value == null;
  }
);

// { a: '', b: 2, c: 2 }

resources

license

Code released under the MIT license.