iptv/scripts/store/setters/is_nsfw.js
2021-12-12 07:12:06 +03:00

4 lines
134 B
JavaScript

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