const trim = str => str.trim || str.replace(/^\s+|\s+$/g, '')
← 07.实现Array.prototype.reduce 09.原生JS封装_new函数,实现new关键字的功能 →