JavaScript Salin Array
let arr =["a","b","c"];
// ES6 way
const copy = [...arr];
// older method
const copy = Array.from(arr);
Batman
let arr =["a","b","c"];
// ES6 way
const copy = [...arr];
// older method
const copy = Array.from(arr);
var numbers = [1,2,3,4,5];
var newNumbers = Object.assign([], numbers);
var newNumbers = Object.assign([], numbers);
var fruit3 = fruit.slice(0,2);
var fruit2 = fruit.slice();
{"posts":{"nodes":[{"title":"Making Websites Easier To Talk To","slug":"making-websites-easier-to-talk-to","date":"2020-12-16T13:56:44","content":null,"__typename":"Post"}],"__typename":"RootQueryToPostConnection"}}