(value)
| 4255 | } |
| 4256 | |
| 4257 | function stringifyClass (value) { |
| 4258 | var res = ''; |
| 4259 | if (!value) { |
| 4260 | return res |
| 4261 | } |
| 4262 | if (typeof value === 'string') { |
| 4263 | return value |
| 4264 | } |
| 4265 | if (Array.isArray(value)) { |
| 4266 | var stringified; |
| 4267 | for (var i = 0, l = value.length; i < l; i++) { |
| 4268 | if (value[i]) { |
| 4269 | if ((stringified = stringifyClass(value[i]))) { |
| 4270 | res += stringified + ' '; |
| 4271 | } |
| 4272 | } |
| 4273 | } |
| 4274 | return res.slice(0, -1) |
| 4275 | } |
| 4276 | if (isObject(value)) { |
| 4277 | for (var key in value) { |
| 4278 | if (value[key]) { res += key + ' '; } |
| 4279 | } |
| 4280 | return res.slice(0, -1) |
| 4281 | } |
| 4282 | /* istanbul ignore next */ |
| 4283 | return res |
| 4284 | } |
| 4285 | |
| 4286 | /* */ |
| 4287 |
no test coverage detected