UNPKG

polyfill-service

Version:
4 lines (3 loc) 82 B
Math.trunc = function trunc(x) { return x < 0 ? Math.ceil(x) : Math.floor(x); };