Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: x-assign
node v16.18.0
endpoint
share
tweet
const XAssign = require("x-assign@0.1.4"); console.log("Before:"+{}.polluted); const a = {red: "apple"}; const b = JSON.parse('{"__proto__": {"polluted": true}}') const c = XAssign.assign(a, b); console.log("After:"+{}.polluted);
Created from: https://npm.runkit.com/x-assign
Loading…
Clone and edit this document