iptv/scripts/store/setters/is_nsfw.js

4 lines
134 B
JavaScript

module.exports = function ({ categories }) {
return Array.isArray(categories) ? categories.filter(c => c.nsfw).length > 0 : false
}