No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

14 líneas
342 B

  1. /* @flow */
  2. import type {PlainStyle, Style} from './Types';
  3. // currently used to initiate the velocity style object to 0
  4. export default function mapToZero(obj: Style | PlainStyle): PlainStyle {
  5. let ret = {};
  6. for (const key in obj) {
  7. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  8. ret[key] = 0;
  9. }
  10. }
  11. return ret;
  12. }