iptv/scripts/store/setters/is_nsfw.js

4 lines
134 B
JavaScript
Raw Normal View History

2021-12-12 05:12:06 +01:00
module.exports = function ({ categories }) {
return Array.isArray(categories) ? categories.filter(c => c.nsfw).length > 0 : false
}