Probably this is resolving of just binding as character.
Not related with like some escape sequences or special characters.
In Mac OS bind Option + a
var source = [{name: "Fitsum", race: "blk"},{name: "Alice", race: "wht"},{name: "Jen", race: "wht"},{name: "Kim", race: "blk"},{name: "Lee", race: "asn"}], | |
target = []; | |
function userExists(name, idx, oldArr) { | |
return target.some(function(el) { | |
return el.name === name; | |
}); | |
} | |
function addUser(name, idx, newArr) { |
const url = 'https://URL-TO-YOUR-GLTF.gltf' | |
function imageToData (image) { | |
// heavily inspired by COLLADA Exporter ;) | |
let canvas = document.createElement('canvas') | |
const ctx = canvas.getContext('2d') | |
canvas.width = image.width | |
canvas.height = image.height | |
ctx.drawImage(image, 0, 0) | |
const dataUrl = canvas.toDataURL('image/png') |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y curl | |
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | |
RUN apt-get upgrade -y | |
RUN apt-get install -y nodejs | |
COPY package.json package.json | |
COPY package-lock.json package-lock.json |
function deepCopy(obj) { | |
var copy; | |
// Handle three simple types, null, and undefined | |
if (obj == null || typeof obj != "object") { | |
return obj; | |
} | |
// Handle Date |
/** | |
* Archive to test of ordination and median | |
* | |
* | |
* @author Felipe Oliveira <felipe@chatnizer.com> OR <felipe.wget@gmail.com> | |
* @version 0.1 | |
*/ | |
var objSamples = [ | |
{ |
// TimeElapsed constructs an object for use in determining | |
// time elapsed in milliseconds | |
// constructor: | |
function TimeElapsed(){ | |
var start, elapsed; | |
function getstamp(){ return (new Date().getTime());} | |
this.get = function(){ |
function getPath(obj, key) { | |
paths = [] | |
function getPaths(obj, path) { | |
if (obj instanceof Object && !(obj instanceof Array)) { | |
for (var k in obj){ | |
paths.push(path + "." + k) | |
getPaths(obj[k], path + "." + k) | |
} | |
} |
function fun(data, ...args) { | |
const res = JSON.stringify(data) | |
console.log(res) | |
const t = new Function('console.log("huhaoran")') | |
args.map(item => { | |
const tfun = new Function(`return ${res}.${item}`) | |
console.log(tfun()) | |
}) | |
} |