one-spaces
Advanced tools
Comparing version 1.0.4 to 1.1.0
/** | ||
* @author TroyTae | ||
* @version 1.0.4 | ||
* @version 1.1.0 | ||
* @name one-spaces | ||
@@ -17,10 +17,7 @@ */ | ||
if (arg = args[index]) { | ||
if (className) { | ||
className += ' '; | ||
} | ||
if (Array.isArray(arg)) { | ||
className += OneSpaces.apply(null, arg); | ||
} else { | ||
className += arg; | ||
} | ||
className += ( | ||
Array.isArray(arg) ? | ||
OneSpaces.apply(0, arg) : | ||
arg + ' ' | ||
); | ||
} | ||
@@ -27,0 +24,0 @@ } |
@@ -1,1 +0,1 @@ | ||
var OneSpaces=function r(){var a,n=arguments,e=n.length,l="";while(e--)(a=n[e])&&(l&&(l+=" "),Array.isArray(a)?l+=r.apply(null,a):l+=a);return l}; | ||
var OneSpaces=function r(){var a,e=arguments,n=e.length,i="";while(n--)(a=e[n])&&(i+=Array.isArray(a)?r.apply(0,a):a+" ");return i}; |
{ | ||
"name": "one-spaces", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A tiny module for making className 😎", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# One Spaces | ||
A tiny(146B) module for making css className 😎 | ||
A tiny(132B) module for making className 😎 | ||
@@ -23,3 +23,3 @@ ## Installation | ||
```javascript | ||
OneSpaces('cls1', 'cls2', 'cls3') === 'cls3 cls2 cls1'; | ||
OneSpaces('cls1', 'cls2', 'cls3') === 'cls3 cls2 cls1 ' | ||
``` | ||
@@ -30,3 +30,3 @@ | ||
```javascript | ||
OneSpaces(['cls1', 'cls2'], ['cls3']) === 'cls3 cls2 cls1'; | ||
OneSpaces(['cls1', 'cls2'], ['cls3']) === 'cls3 cls2 cls1 ' | ||
``` | ||
@@ -37,3 +37,3 @@ | ||
```javascript | ||
OneSpaces('cls1', null, 'cls2', false && 'none', true && 'cls3') === 'cls3 cls2 cls1'; | ||
OneSpaces('cls1', null, 'cls2', false && 'none', true && 'cls3') === 'cls3 cls2 cls1 ' | ||
``` | ||
@@ -44,3 +44,3 @@ | ||
```javascript | ||
OneSpaces(['cls1', 'cls2'], null, 'cls3') === 'cls3 cls2 cls1'; | ||
OneSpaces(['cls1', 'cls2'], null, 'cls3') === 'cls3 cls2 cls1 ' | ||
``` | ||
@@ -47,0 +47,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9242
6
25