set-all-effing-values

1.0.1 • Public • Published

set-all-effing-values

Set all effing values of a plain object to whatever (no recursion). Why? Because, why the eff not.

yarn add set-all-effing-values

Example

import setAllEffingValues from 'set-all-effing-values';

const foo = {
  bar: 'Hello Katamaran',
  krangel: 13,
  bistro: [1, 2, 3],
  noRecursion: {
    kriek: 'bingBong'
  }
};

const newValues = setAllEffingValues(foo, 'bow to me');

/*

newValues = {
  bar: 'bow to me',
  krangel: 'bow to me',
  bistro: 'bow to me',
  noRecursion: 'bow to me'
}

*/

Readme

Keywords

none

Package Sidebar

Install

npm i set-all-effing-values

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stianba