What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-14 05:24:01
discord.js mute command
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MUTE_MEMBERS')) return message.reply('You cannot use this command'); if (!message.guild.me.hasPermission('MANAGE_ROLES')) ret... Add solution -
Javascript 2021-09-13 22:41:03
find the matching property
var todos = [ { item: 'Wash the dog', added: 2018-03-22, completed: false }, { item: 'Plan surprise party for Bailey', added: 2018-03-14, completed: false }, { item: 'Go see Black Panther', added: 2018-03-12, completed: true }, { ... Add solution -
Other 2021-09-13 14:14:02
filter using two array of objects
const arr1 = [{id:'1',name:'A'},{id:'2',name:'B'},{id:'3',name:'C'},{id:'4',name:'D'}]; const arr2 = [{id:'1',name:'A',state:'healthy'},{id:'3',name:'C',state:'healthy'}]; const filterByReference = (arr1, arr2) => { let res = []; &n... Add solution