LearnBoost/stylus — Issue #464: Numbers recently change to 'unit'
Author: cwolves
Created: 2011-11-21 00:09:09+00:00
State: open

```css
.foo
bar 25
```

`typeof( bar )` now === `unit`, where it used to be something else (`Number`, I believe?) How do I now detect that something has no unit defined? I have a bunch of code like:

```
top( args... )
params = ()
for n in args
push( params, ( 'unit' != typeof( n ) ) ? n : unit( n, unit( n ) || 'px' ) )

top params
```

which basically says "append `px` if no unit exists"