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