lite.js
This file
Path
src/lite.js
13 lines · 236 bytes · JavaScript
Last changed by
feat: add `clsx/lite` moduleLuke Edwardsbefore adoption1a49142
History of this fileTake it
feat: add `clsx/lite` moduleLuke Edwardsbefore adoption1a49142
lines 1–13why, one step back1export function clsx() {2 var i=0, tmp, str='', len=arguments.length;3 for (; i < len; i++) {4 if (tmp = arguments[i]) {5 if (typeof tmp === 'string') {6 str += (str && ' ') + tmp;7 }8 }9 }10 return str;11}1213export default clsx;