Skip to content

Instantly share code, notes, and snippets.

@wookiecooking
Created September 4, 2015 04:18
Show Gist options
  • Save wookiecooking/c2609c4dfc4f3348d398 to your computer and use it in GitHub Desktop.
Save wookiecooking/c2609c4dfc4f3348d398 to your computer and use it in GitHub Desktop.

Revisions

  1. wookiecooking created this gist Sep 4, 2015.
    11 changes: 11 additions & 0 deletions mO.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    var _ = require('lodash');

    var test = { a:'This will be a string' };

    var result = {a: String };

    _.map(test, function(v, k) {
    result[k] = v;
    });

    console.log(result);