What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-11 04:17:02
Change Window.prototype.tabClose so that it removes the correct tab.
// tabs is an array of titles of each site open within the window var Window = function(tabs) { this.tabs = tabs; // We keep a record of the array inside the object }; // When you join two windows into one window Window.prototype.join = function (other... Add solution -
Other 2021-09-11 03:01:02
class="lazy"
/* lazyload.js (c) Lorenzo Giuliani * MIT License (http://www.opensource.org/licenses/mit-license.html) * * expects a list of: * `<img src="blank.gif" data-src="my_image.png" width="600" height="400" class=... Add solution -
Javascript 2021-09-10 22:43:02
discord.js create channel
let channelName = args.slice(0).join(' '); //Arguments to set the channel name message.guild.channels.create(channelName, { type: "text", //This create a text channel, you can make a voice one too, by changing "text" to "v... Add solution -
Javascript 2021-09-10 07:21:03
uppercase first letter js
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Javascript 2021-09-09 22:20:03
discord.js mute script
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-09 11:38:03
javascript capitalize string
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Javascript 2021-09-09 10:36:02
export mongo to csv node
const json2csv = require('json2csv').parse; //For unique file name const dateTime = new Date().toISOString().slice(-24).replace(/\D/g, '').slice(0, 14); const filePath = path.join(__dirname, "../../../", "public", "exports&quo... Add solution