UNPKG

@douyinfe/semi-animation

Version:

animation base library for semi-ui

10 lines 270 B
export default function stripStyle(style) { const ret = {}; for (const key in style) { if (!Object.prototype.hasOwnProperty.call(style, key)) { continue; } ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val; } return ret; }