What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-13 19:40:07
React tottural
import React from 'react' import ReactDOM from 'react-dom' import ReactBootstrap from 'react-bootstrap' import { ListGroup } from 'react-bootstrap' import { ListGroupItem } from 'react-bootstrap' import { Panel } from 'react-bootstrap' import { ButtonGrou... Add solution -
Javascript 2022-02-09 21:55:08
how to make data title case in discord js
function titleCase(str) { return str .split(' ') .map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase()) .join(' '); } console.log(titleCase("I'm a little tea pot")); // I'm A Little tea Pot Add solution -
Javascript 2022-02-08 06:50:07
d3 force simulation
var width = 600, height = 400; var colorScale = ['orange', 'lightblue', '#B19CD9']; var xCenter = [100, 300, 500] var numNodes = 100; var nodes = d3.range(numNodes).map(function(d, i) { return { radius: Math.random() * 25, category: i % 3 ... Add solution -
Javascript 2022-02-08 04:05:03
What Is Suspense, Exactly?
const resource = fetchProfileData(); function ProfilePage() { return ( <Suspense fallback={<h1>Loading profile...</h1>}> <ProfileDetails /> <Suspense fallback={<h1>Loading posts...</h1>}> ... Add solution -
Javascript 2022-02-08 03:30:02
how to get property names from object using map method react
const arrayvals = [ { Number: 1, newNumber: "1", name: "FB" }, { Number: 3, newNumber: "2", name: "FB" }, { Number: 7, newNumber: "5", name: "GK" }, { Number: 8, newNumber: &quo... Add solution -
Javascript 2022-02-07 10:25:24
javascript create array of objects from multiple arrays
var ids = [1,2,3]; //Hundreds of elements here var names = ["john","doe","foo"]; //Hundreds of elements here var countries = ["AU","USA","USA"]; //Hundreds of elements here // Create the object ... Add solution -
Javascript 2022-02-04 13:25:37
filter geojson programmatically
<!DOCTYPE html> <html> <head> <title>GeoJSON Example</title> <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> <script src="https://unpkg.com/leafl... Add solution