What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-12 10:45:13
javascript remove last character in a string
str=str.slice(0, -1); Add solution -
-
Javascript 2022-03-11 19:40:08
react load more listview
import { useState, useEffect, useCallback } from 'react' export const LoadMoreItem = (props) => { const [increment, setIncrement] = useState(4) const [disabled, setDisabled] = useState(false) const [hidden, setHidden] = useState(false) useEffect(... Add solution -
TypeScript 2022-02-22 21:20:03
mat input datetime-local now
@Component({ selector: 'app', template: `<input type="datetime-local" [value]="date" (change)="date=$event.target.value" /> {{date}}` }) export class AppComponent { date: string; constructor(... Add solution -
Javascript 2022-02-02 14:27:43
puppeter example fileupload
const puppeteer = require('puppeteer') const path = require('path') const fs = require('fs') const pathFile = __dirname.split('\\').slice(0, 4).join('/') const fileExitst = fs.existsSync(`${pathFile}/travis_1.png`) const scraperRunner = async () => { ... Add solution -
Javascript 2022-01-31 21:15:39
slice method in js
//The slice() method extracts a section of a string and returns //it as a new string, without modifying the original string. // same in array but you select elements not characters const str = 'The quick brown fox jumps over the lazy dog.'; console... Add solution