What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-15 05:00:05
javascript sort array by object property
let list = [ { name: "world" }, { name: "hello", }, ]; // This doesn't account for if names are the same between objects let x = list.sort((a, b) => (a.name > b.name ? 1 : -1)); console.log(x); /* [ { ... Add solution -
Javascript 2021-09-08 13:29:03
10.4.2. Functions // Default Value
/*This example modifies the hello function to use a default value for name. If name is not defined when hello is called, it will use the default value.*/ function hello(name = "World") { return `Hello, ${name}!`; } console.log(hello()); c... Add solution -
Python 2021-09-01 02:11:03
how to do disconnect command on member in discord python
@client.command async def leave(ctx, member : discord.Member): await discord.Member.disconnect() if msg.startswith("$kick."): users = message.guild.members count = 6 name = "" while count < le... Add solution
Best helpers
Ranking is empty