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