Skip to content

Commit b361fa1

Browse files
committed
Update categoriesHandlers.class.js to use Utilities
1 parent 4eee27d commit b361fa1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib/categoriesHandlers.class.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
Array.prototype.isEmpty = (arr) => {
3-
return (arr === undefined || arr.length === 0) ? false : true
4-
}
1+
import Utility from './utilities.class.js'
52

63
class Categories {
74
getCategoriesFlags = array => {
@@ -17,7 +14,7 @@ class Categories {
1714
}
1815

1916
getCategoriesFromCategoriesFlags = array => {
20-
return (!Array.isEmpty(array)) ? array : undefined
17+
return (!Utility.isEmpty(array)) ? array : undefined
2118
}
2219
}
2320

0 commit comments

Comments
 (0)