Package Exports
- set-prop-get-value
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 (set-prop-get-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
set-prop-get-value
set a new property in a js object and return the value of the given property
api
const setProp = require('set-prop-get-value')
setProp(object, prop_name, prop_value)
example
const setProp = require('set-prop-get-value')
let someObject = {}
setProp(someObject, 'hello', 'world')
// should return `world`
// and now `someObject` should have the new prop `hello: 'world'`
