Norvell, Please Merge

    overwrite-properties

    1.0.0 • Public • Published

    Overwrite Properties

    Open Source Love Open Source Love PRs Welcome

    A tiny module that lets you overwrite an object's properties with a specified value.

    Save yourself some time and avoid the headache of recursion.

    Getting Started

    npm install --save overwrite-properties
    

    Usage

    Also shown in tester.js.

    const overwriteProperties = require('overwrite-properties');
     
    const testObject = {
      name: 'Mark',
      age: 21,
      job: 'Programmer',
      loves: 'Github'
    };
     
    console.log(overwriteProperties(testObject, 'goat'));
    /*==>
    { name: 'goat', age: 'goat', job: 'goat', loves: 'goat' }
    */

    License

    • MIT

    Install

    npm i overwrite-properties

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.16 kB

    Total Files

    6

    Last publish

    Collaborators

    • molnarmark