UNPKG

@douyinfe/semi-animation

Version:

animation base library for semi-ui

9 lines 237 B
// currently used to initiate the velocity style object to 0 export default function mapToZero(obj) { const ret = {}; const objKeys = obj && Object.keys(obj) || []; for (const key of objKeys) { ret[key] = 0; } return ret; }