The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Move An Item From The Front Of An Array To The Back

TODO: Pull subtitle into page object

#+KEYWORDS: splice shuffle

code_start_default_section code_end_default_section
Results
[ 'b', 'c', 'd', 'e', 'a' ]

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Move An Item From The Front Of An Array To The Back

-- p

#+KEYWORDS: splice shuffle

-- code/
-- js

const letters = ['a', 'b', 'c', 'd', 'e']

  letters.push(letters.splice(0, 1)[0])

  console.log(letters)

-- /code

-- results/

[ 'b', 'c', 'd', 'e', 'a' ]

-- /results


-- categories
-- JavaScript 

-- metadata
-- date: 2022-08-21 16:22:07
-- id: 2dggufqv
-- status: draft
-- type: post
-- SCRUBBED_NEO: false
-- site: aws