How to use the object-assign.bind function in object-assign

To help you get started, we’ve selected a few object-assign examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skatejs / skatejs / src / api / properties / boolean.js View on Github external
import assign from 'object-assign';
export default assign.bind(null, {}, {
  coerce: value => !!value,
  default: false,
  deserialize: value => !(value === null),
  serialize: value => value ? '' : undefined
});

object-assign

ES2015 `Object.assign()` ponyfill

MIT
Latest version published 8 years ago

Package Health Score

77 / 100
Full package analysis