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 */
 | 
			
		||||
let htmlEndPoint = 'https://www.cset-foretell.com/questions?page='
 | 
			
		||||
String.prototype.replaceAll = function replaceAll(search, replace) { return this.split(search).join(replace); }
 | 
			
		||||
 | 
			
		||||
/* Support functions */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,7 @@ import { upsert } from "../utils/mongo-wrapper.js"
 | 
			
		|||
 | 
			
		||||
/* Definitions */
 | 
			
		||||
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 */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ import { upsert } from "../utils/mongo-wrapper.js"
 | 
			
		|||
 | 
			
		||||
/* Definitions */
 | 
			
		||||
let hypermindEnpoint1 = 'https://predict.hypermind.com/dash/jsx.json'
 | 
			
		||||
String.prototype.replaceAll = function replaceAll(search, replace) { return this.split(search).join(replace); }
 | 
			
		||||
 | 
			
		||||
/* Support Functions */
 | 
			
		||||
function sleep(ms) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user