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.
installation
npm install -S @jswork/next-safe-assignusage
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.