You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mapToZero.js 346 B

3 years ago
12345678910111213141516171819
  1. // currently used to initiate the velocity style object to 0
  2. 'use strict';
  3. exports.__esModule = true;
  4. exports['default'] = mapToZero;
  5. function mapToZero(obj) {
  6. var ret = {};
  7. for (var key in obj) {
  8. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9. ret[key] = 0;
  10. }
  11. }
  12. return ret;
  13. }
  14. module.exports = exports['default'];