(obj)
| 51 | } |
| 52 | |
| 53 | export function isEmptyObject(obj) { |
| 54 | if (isNull(obj)) { |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | for (var prop in obj) { |
| 59 | if (obj.hasOwnProperty(prop)) { |
| 60 | return false; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | return true; |
| 65 | } |
| 66 | |
| 67 | export function addClass(element, clazz) { |
| 68 | if (!hasClass(element, clazz)) { |
no test coverage detected