prefixobjpropertyvalues

0.0.1 • Public • Published

PrefixObjectPropertyValues

Iterates object properties while prepending to string values given prefix using transformation function

api and usage

var prefix = require("prefixobjpropertyvalues")

var data = {
  propertyA: "path",
  propertyB: ["path", "path/inner"]
}

prefix(data, "root", path.join)

console.log(data.propertyA) // "root/path"
console.log(data.propertyB) // ["root/path", "root/path/inner"]

Readme

Keywords

none

Package Sidebar

Install

npm i prefixobjpropertyvalues

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • outbounder