one-spaces
Advanced tools
Comparing version 1.1.6 to 1.2.1
/** | ||
* @author TroyTae | ||
* @version 1.1.6 | ||
* @version 1.2.1 | ||
* @name one-spaces | ||
@@ -11,7 +11,7 @@ */ | ||
arg, | ||
className = '', | ||
index = arguments.length | ||
index = 0, | ||
className = '' | ||
; | ||
while (index--) { | ||
if (arg = arguments[index]) { | ||
for (; index < arguments.length;) { | ||
if (arg = arguments[index++]) { | ||
if (className) { | ||
@@ -18,0 +18,0 @@ className += ' '; |
@@ -1,1 +0,1 @@ | ||
var OneSpaces=function e(){var n,p="",a=arguments.length;while(a--)(n=arguments[a])&&(p&&(p+=" "),p+=n.pop?e.apply(0,n):n);return p}; | ||
var OneSpaces=function n(){for(var p,r=0,a="";r<arguments.length;)(p=arguments[r++])&&(a&&(a+=" "),a+=p.pop?n.apply(0,p):p);return a}; |
{ | ||
"name": "one-spaces", | ||
"version": "1.1.6", | ||
"version": "1.2.1", | ||
"description": "A tiny module for making className 😎", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
9957
6