created a replaceAll method for strings
This commit is contained in:
parent
834d0dcad9
commit
c8b1e3d28d
|
@ -8,6 +8,7 @@ import {upsert} from "../utils/mongo-wrapper.js"
|
||||||
|
|
||||||
/* Definitions */
|
/* Definitions */
|
||||||
let htmlEndPoint = 'https://www.cset-foretell.com/questions?page='
|
let htmlEndPoint = 'https://www.cset-foretell.com/questions?page='
|
||||||
|
String.prototype.replaceAll = function replaceAll(search, replace) { return this.split(search).join(replace); }
|
||||||
|
|
||||||
/* Support functions */
|
/* Support functions */
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { upsert } from "../utils/mongo-wrapper.js"
|
||||||
|
|
||||||
/* Definitions */
|
/* Definitions */
|
||||||
let endpoints = ["https://goodjudgment.io/superforecasts/", "https://goodjudgment.io/economist/"]
|
let endpoints = ["https://goodjudgment.io/superforecasts/", "https://goodjudgment.io/economist/"]
|
||||||
|
String.prototype.replaceAll = function replaceAll(search, replace) { return this.split(search).join(replace); }
|
||||||
|
|
||||||
/* Support functions */
|
/* Support functions */
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { upsert } from "../utils/mongo-wrapper.js"
|
||||||
|
|
||||||
/* Definitions */
|
/* Definitions */
|
||||||
let hypermindEnpoint1 = 'https://predict.hypermind.com/dash/jsx.json'
|
let hypermindEnpoint1 = 'https://predict.hypermind.com/dash/jsx.json'
|
||||||
|
String.prototype.replaceAll = function replaceAll(search, replace) { return this.split(search).join(replace); }
|
||||||
|
|
||||||
/* Support Functions */
|
/* Support Functions */
|
||||||
function sleep(ms) {
|
function sleep(ms) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user