File "index.js"

Full Path: C:/wamp64/www/INTERPRETE2/backend/node_modules/append-field/index.js
File size: 307 bytes
MIME-type: text/plain
Charset: utf-8

var parsePath = require('./lib/parse-path')
var setValue = require('./lib/set-value')

function appendField (store, key, value) {
  var steps = parsePath(key)

  steps.reduce(function (context, step) {
    return setValue(context, step, context[step.key], value)
  }, store)
}

module.exports = appendField