UNPKG

solidstate

Version:

An observable REST client for Javascript with a dramatically simple & fluent API.

19 lines (15 loc) 398 B
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([ 'underscore', ], function(_) { 'use strict'; _.mixin({ mapValues: function (input, mapper) { return _.reduce(input, function (obj, v, k) { obj[k] = mapper(v, k, input); return obj; }, {}); } }); return _; });