Skip to content

Instantly share code, notes, and snippets.

View AlfieDarko's full-sized avatar

Alfie Darko AlfieDarko

View GitHub Profile
@AlfieDarko
AlfieDarko / reverse_mutation.js
Last active August 13, 2018 19:53
reverse_mutation.js
let first6Months = ["Jan", "Feb", "March", "April", "May", "June"]
console.log(first6Months)
// Expected output: [ "June", "May", "April", "March", "Feb", "Jan" ]
let first6MonthsClone
first6MonthsClone = first6Months.reverse()
console.log(first6Months)
// Expected output: ["Jan", "Feb", "March", "April", "May", "June"]
@AlfieDarko
AlfieDarko / push_mutation.js
Created June 17, 2018 16:51
Simple array mutations
let arr = [1,2,3,4,5]
arr.push(6)
console.log(arr)
// Expected output: [1,2,3,4,5,6]
let arrClone = arr.push(7)
console.log(arrClone)
<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>1</record>
<time>2016/09/30 19:28:07.417</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Microsoft Visual Studio 2015 version: 14.0.25420.1</description>
</entry>