[{"data":1,"prerenderedAt":1085},["ShallowReactive",2],{"\u002Fblog\u002Fthe-spread-operator":3,"\u002Fblog\u002Fthe-spread-operator-neighbours":1053},{"id":4,"title":5,"body":6,"date":1034,"description":1035,"draft":1036,"draftReasons":1037,"extension":1038,"meta":1039,"navigation":151,"path":1044,"private":1036,"seo":1045,"sitemap":1046,"stem":1049,"tags":1050,"updatedAt":1037,"__hash__":1052},"blog\u002Fblog\u002Fthe-spread-operator.md","The Spread Operator",{"type":7,"value":8,"toc":1021},"minimark",[9,14,18,24,29,32,321,324,387,391,398,401,518,522,526,529,602,615,619,622,739,746,846,849,946,949,953,969,976,985,992,995,999,1002,1006,1017],[10,11,13],"h2",{"id":12},"what-is-the-spread-opreator","What Is The Spread Opreator?",[15,16,17],"p",{},"The spread operator is a shorthand technique introduced in ECMAScript 2015 to solve a common problem:",[19,20,21],"blockquote",{},[15,22,23],{},"Taking the items within an iterable and distributing them within another iterable.",[25,26,28],"h3",{"id":27},"quick-review-iterables","Quick Review: Iterables",[15,30,31],{},"Just to ensure we're all on the same page, an iterable is a data type that where its pieces can be divided into smaller data. Here are some examples:",[33,34,39],"pre",{"className":35,"code":36,"language":37,"meta":38,"style":38},"language-js shiki shiki-themes github-dark-high-contrast","\u002F\u002F Arrays\nconst list = [1, 2, 3]\nconst listItem1 = list[0] \u002F\u002F 1\nconst listItem2 = list[1] \u002F\u002F 2\nconst listItem3 = list[2] \u002F\u002F 3\n\n\u002F\u002F Objects\nconst pet = {\n  name: 'Destinio',\n  type: 'dragon',\n}\nconst petName = pet.name \u002F\u002F 'Destinio'\nconst petType = pet.type \u002F\u002F 'dragon'\n\n\u002F\u002F Strings are usually a surprise because they are\n\u002F\u002F actually arrays that contain single characters\n\u002F\u002F which add up to the string\nconst word = 'complete'\nconst wordLetters = ['c', 'o', 'm', 'p', 'l', 'e', 't', 'e']\n","js","",[40,41,42,51,86,108,127,146,153,159,172,185,196,202,218,234,239,245,251,257,270],"code",{"__ignoreMap":38},[43,44,47],"span",{"class":45,"line":46},"line",1,[43,48,50],{"class":49},"sQrFR","\u002F\u002F Arrays\n",[43,52,54,58,62,65,69,72,75,78,80,83],{"class":45,"line":53},2,[43,55,57],{"class":56},"sWyjQ","const",[43,59,61],{"class":60},"sCcAr"," list",[43,63,64],{"class":56}," =",[43,66,68],{"class":67},"sMAXC"," [",[43,70,71],{"class":60},"1",[43,73,74],{"class":67},", ",[43,76,77],{"class":60},"2",[43,79,74],{"class":67},[43,81,82],{"class":60},"3",[43,84,85],{"class":67},"]\n",[43,87,89,91,94,96,99,102,105],{"class":45,"line":88},3,[43,90,57],{"class":56},[43,92,93],{"class":60}," listItem1",[43,95,64],{"class":56},[43,97,98],{"class":67}," list[",[43,100,101],{"class":60},"0",[43,103,104],{"class":67},"] ",[43,106,107],{"class":49},"\u002F\u002F 1\n",[43,109,111,113,116,118,120,122,124],{"class":45,"line":110},4,[43,112,57],{"class":56},[43,114,115],{"class":60}," listItem2",[43,117,64],{"class":56},[43,119,98],{"class":67},[43,121,71],{"class":60},[43,123,104],{"class":67},[43,125,126],{"class":49},"\u002F\u002F 2\n",[43,128,130,132,135,137,139,141,143],{"class":45,"line":129},5,[43,131,57],{"class":56},[43,133,134],{"class":60}," listItem3",[43,136,64],{"class":56},[43,138,98],{"class":67},[43,140,77],{"class":60},[43,142,104],{"class":67},[43,144,145],{"class":49},"\u002F\u002F 3\n",[43,147,149],{"class":45,"line":148},6,[43,150,152],{"emptyLinePlaceholder":151},true,"\n",[43,154,156],{"class":45,"line":155},7,[43,157,158],{"class":49},"\u002F\u002F Objects\n",[43,160,162,164,167,169],{"class":45,"line":161},8,[43,163,57],{"class":56},[43,165,166],{"class":60}," pet",[43,168,64],{"class":56},[43,170,171],{"class":67}," {\n",[43,173,175,178,182],{"class":45,"line":174},9,[43,176,177],{"class":67},"  name: ",[43,179,181],{"class":180},"sTRMh","'Destinio'",[43,183,184],{"class":67},",\n",[43,186,188,191,194],{"class":45,"line":187},10,[43,189,190],{"class":67},"  type: ",[43,192,193],{"class":180},"'dragon'",[43,195,184],{"class":67},[43,197,199],{"class":45,"line":198},11,[43,200,201],{"class":67},"}\n",[43,203,205,207,210,212,215],{"class":45,"line":204},12,[43,206,57],{"class":56},[43,208,209],{"class":60}," petName",[43,211,64],{"class":56},[43,213,214],{"class":67}," pet.name ",[43,216,217],{"class":49},"\u002F\u002F 'Destinio'\n",[43,219,221,223,226,228,231],{"class":45,"line":220},13,[43,222,57],{"class":56},[43,224,225],{"class":60}," petType",[43,227,64],{"class":56},[43,229,230],{"class":67}," pet.type ",[43,232,233],{"class":49},"\u002F\u002F 'dragon'\n",[43,235,237],{"class":45,"line":236},14,[43,238,152],{"emptyLinePlaceholder":151},[43,240,242],{"class":45,"line":241},15,[43,243,244],{"class":49},"\u002F\u002F Strings are usually a surprise because they are\n",[43,246,248],{"class":45,"line":247},16,[43,249,250],{"class":49},"\u002F\u002F actually arrays that contain single characters\n",[43,252,254],{"class":45,"line":253},17,[43,255,256],{"class":49},"\u002F\u002F which add up to the string\n",[43,258,260,262,265,267],{"class":45,"line":259},18,[43,261,57],{"class":56},[43,263,264],{"class":60}," word",[43,266,64],{"class":56},[43,268,269],{"class":180}," 'complete'\n",[43,271,273,275,278,280,282,285,287,290,292,295,297,300,302,305,307,310,312,315,317,319],{"class":45,"line":272},19,[43,274,57],{"class":56},[43,276,277],{"class":60}," wordLetters",[43,279,64],{"class":56},[43,281,68],{"class":67},[43,283,284],{"class":180},"'c'",[43,286,74],{"class":67},[43,288,289],{"class":180},"'o'",[43,291,74],{"class":67},[43,293,294],{"class":180},"'m'",[43,296,74],{"class":67},[43,298,299],{"class":180},"'p'",[43,301,74],{"class":67},[43,303,304],{"class":180},"'l'",[43,306,74],{"class":67},[43,308,309],{"class":180},"'e'",[43,311,74],{"class":67},[43,313,314],{"class":180},"'t'",[43,316,74],{"class":67},[43,318,309],{"class":180},[43,320,85],{"class":67},[15,322,323],{},"And just for additional clarity, here are data types that are not considered to be \"iterables.\"",[33,325,327],{"className":35,"code":326,"language":37,"meta":38,"style":38},"\u002F\u002F Numbers can't be split up a number into smaller data parts\n\u002F\u002F You can change the value or run calculations on it, but it\n\u002F\u002F cannot be broken down further\nconst x = 5\n\n\u002F\u002F Booleans are true or false. While there may be partial\n\u002F\u002F truths in life, luckily things are black and white\n\u002F\u002F when it comes to programming\nconst state = true\n",[40,328,329,334,339,344,356,360,365,370,375],{"__ignoreMap":38},[43,330,331],{"class":45,"line":46},[43,332,333],{"class":49},"\u002F\u002F Numbers can't be split up a number into smaller data parts\n",[43,335,336],{"class":45,"line":53},[43,337,338],{"class":49},"\u002F\u002F You can change the value or run calculations on it, but it\n",[43,340,341],{"class":45,"line":88},[43,342,343],{"class":49},"\u002F\u002F cannot be broken down further\n",[43,345,346,348,351,353],{"class":45,"line":110},[43,347,57],{"class":56},[43,349,350],{"class":60}," x",[43,352,64],{"class":56},[43,354,355],{"class":60}," 5\n",[43,357,358],{"class":45,"line":129},[43,359,152],{"emptyLinePlaceholder":151},[43,361,362],{"class":45,"line":148},[43,363,364],{"class":49},"\u002F\u002F Booleans are true or false. While there may be partial\n",[43,366,367],{"class":45,"line":155},[43,368,369],{"class":49},"\u002F\u002F truths in life, luckily things are black and white\n",[43,371,372],{"class":45,"line":161},[43,373,374],{"class":49},"\u002F\u002F when it comes to programming\n",[43,376,377,379,382,384],{"class":45,"line":174},[43,378,57],{"class":56},[43,380,381],{"class":60}," state",[43,383,64],{"class":56},[43,385,386],{"class":60}," true\n",[25,388,390],{"id":389},"identifying-the-spread-operator","Identifying the Spread Operator",[15,392,393,394,397],{},"Luckily, it is easily identifiable in code by an ellipsis (",[40,395,396],{},"...",").",[15,399,400],{},"Here are a few examples:",[33,402,404],{"className":35,"code":403,"language":37,"meta":38,"style":38},"const list = [1, 2, 3]\nconst listSpread = [...list]\n\nconst word = 'string'\nconst wordSpread = [...wordSpread]\n\nconst object = { name: 'Destinio', type: 'dragon' }\nconst objectSpread = { ...object }\n",[40,405,406,428,444,448,459,475,479,501],{"__ignoreMap":38},[43,407,408,410,412,414,416,418,420,422,424,426],{"class":45,"line":46},[43,409,57],{"class":56},[43,411,61],{"class":60},[43,413,64],{"class":56},[43,415,68],{"class":67},[43,417,71],{"class":60},[43,419,74],{"class":67},[43,421,77],{"class":60},[43,423,74],{"class":67},[43,425,82],{"class":60},[43,427,85],{"class":67},[43,429,430,432,435,437,439,441],{"class":45,"line":53},[43,431,57],{"class":56},[43,433,434],{"class":60}," listSpread",[43,436,64],{"class":56},[43,438,68],{"class":67},[43,440,396],{"class":56},[43,442,443],{"class":67},"list]\n",[43,445,446],{"class":45,"line":88},[43,447,152],{"emptyLinePlaceholder":151},[43,449,450,452,454,456],{"class":45,"line":110},[43,451,57],{"class":56},[43,453,264],{"class":60},[43,455,64],{"class":56},[43,457,458],{"class":180}," 'string'\n",[43,460,461,463,466,468,470,472],{"class":45,"line":129},[43,462,57],{"class":56},[43,464,465],{"class":60}," wordSpread",[43,467,64],{"class":56},[43,469,68],{"class":67},[43,471,396],{"class":56},[43,473,474],{"class":67},"wordSpread]\n",[43,476,477],{"class":45,"line":148},[43,478,152],{"emptyLinePlaceholder":151},[43,480,481,483,486,488,491,493,496,498],{"class":45,"line":155},[43,482,57],{"class":56},[43,484,485],{"class":60}," object",[43,487,64],{"class":56},[43,489,490],{"class":67}," { name: ",[43,492,181],{"class":180},[43,494,495],{"class":67},", type: ",[43,497,193],{"class":180},[43,499,500],{"class":67}," }\n",[43,502,503,505,508,510,513,515],{"class":45,"line":161},[43,504,57],{"class":56},[43,506,507],{"class":60}," objectSpread",[43,509,64],{"class":56},[43,511,512],{"class":67}," { ",[43,514,396],{"class":56},[43,516,517],{"class":67},"object }\n",[10,519,521],{"id":520},"why-should-you-use-it","Why Should You Use It?",[25,523,525],{"id":524},"its-easier-to-understand-the-output","It's easier to understand the output",[15,527,528],{},"Let's start with a simple example:",[33,530,532],{"className":35,"code":531,"language":37,"meta":38,"style":38},"const word = 'phoenix'\n\nconst wordSplit = word.split('')\n\u002F\u002F ['p', 'h', 'o', 'e', 'n', 'i', 'x']\n\nconst wordSpread = [...word]\n\u002F\u002F ['p', 'h', 'o', 'e', 'n', 'i', 'x']\n",[40,533,534,545,549,574,579,583,598],{"__ignoreMap":38},[43,535,536,538,540,542],{"class":45,"line":46},[43,537,57],{"class":56},[43,539,264],{"class":60},[43,541,64],{"class":56},[43,543,544],{"class":180}," 'phoenix'\n",[43,546,547],{"class":45,"line":53},[43,548,152],{"emptyLinePlaceholder":151},[43,550,551,553,556,558,561,565,568,571],{"class":45,"line":88},[43,552,57],{"class":56},[43,554,555],{"class":60}," wordSplit",[43,557,64],{"class":56},[43,559,560],{"class":67}," word.",[43,562,564],{"class":563},"sj_SG","split",[43,566,567],{"class":67},"(",[43,569,570],{"class":180},"''",[43,572,573],{"class":67},")\n",[43,575,576],{"class":45,"line":110},[43,577,578],{"class":49},"\u002F\u002F ['p', 'h', 'o', 'e', 'n', 'i', 'x']\n",[43,580,581],{"class":45,"line":129},[43,582,152],{"emptyLinePlaceholder":151},[43,584,585,587,589,591,593,595],{"class":45,"line":148},[43,586,57],{"class":56},[43,588,465],{"class":60},[43,590,64],{"class":56},[43,592,68],{"class":67},[43,594,396],{"class":56},[43,596,597],{"class":67},"word]\n",[43,599,600],{"class":45,"line":155},[43,601,578],{"class":49},[15,603,604,605,607,608,610,611,614],{},"The use of the ",[40,606,564],{}," function requires knowledge that an array will be generated and you have to include the ",[40,609,570],{}," as an argument in order for it to split the letters up. However, when using the spread syntax, it is immediately clear that the variable ",[40,612,613],{},"wordSpread"," is going to result in an array.",[25,616,618],{"id":617},"copying-an-item-is-incredibly-easy","Copying an item is incredibly easy",[15,620,621],{},"Take the following snippet:",[33,623,625],{"className":35,"code":624,"language":37,"meta":38,"style":38},"\u002F\u002F These two lines appear to accomplish\n\u002F\u002F the task of copying the data\nconst list = [1, 2, 3] \u002F\u002F [1, 2, 3]\nconst list2 = list \u002F\u002F [1, 2, 3]\n\n\u002F\u002F If we push a new item to the original\n\u002F\u002F list though...\nlist.push(4)\n\n\u002F\u002F Both items will be modified\nconsole.log(list) \u002F\u002F [1, 2, 3, 4]\nconsole.log(list2) \u002F\u002F [1, 2, 3, 4]\n",[40,626,627,632,637,662,676,680,685,690,705,709,714,728],{"__ignoreMap":38},[43,628,629],{"class":45,"line":46},[43,630,631],{"class":49},"\u002F\u002F These two lines appear to accomplish\n",[43,633,634],{"class":45,"line":53},[43,635,636],{"class":49},"\u002F\u002F the task of copying the data\n",[43,638,639,641,643,645,647,649,651,653,655,657,659],{"class":45,"line":88},[43,640,57],{"class":56},[43,642,61],{"class":60},[43,644,64],{"class":56},[43,646,68],{"class":67},[43,648,71],{"class":60},[43,650,74],{"class":67},[43,652,77],{"class":60},[43,654,74],{"class":67},[43,656,82],{"class":60},[43,658,104],{"class":67},[43,660,661],{"class":49},"\u002F\u002F [1, 2, 3]\n",[43,663,664,666,669,671,674],{"class":45,"line":110},[43,665,57],{"class":56},[43,667,668],{"class":60}," list2",[43,670,64],{"class":56},[43,672,673],{"class":67}," list ",[43,675,661],{"class":49},[43,677,678],{"class":45,"line":129},[43,679,152],{"emptyLinePlaceholder":151},[43,681,682],{"class":45,"line":148},[43,683,684],{"class":49},"\u002F\u002F If we push a new item to the original\n",[43,686,687],{"class":45,"line":155},[43,688,689],{"class":49},"\u002F\u002F list though...\n",[43,691,692,695,698,700,703],{"class":45,"line":161},[43,693,694],{"class":67},"list.",[43,696,697],{"class":563},"push",[43,699,567],{"class":67},[43,701,702],{"class":60},"4",[43,704,573],{"class":67},[43,706,707],{"class":45,"line":174},[43,708,152],{"emptyLinePlaceholder":151},[43,710,711],{"class":45,"line":187},[43,712,713],{"class":49},"\u002F\u002F Both items will be modified\n",[43,715,716,719,722,725],{"class":45,"line":198},[43,717,718],{"class":67},"console.",[43,720,721],{"class":563},"log",[43,723,724],{"class":67},"(list) ",[43,726,727],{"class":49},"\u002F\u002F [1, 2, 3, 4]\n",[43,729,730,732,734,737],{"class":45,"line":204},[43,731,718],{"class":67},[43,733,721],{"class":563},[43,735,736],{"class":67},"(list2) ",[43,738,727],{"class":49},[15,740,741,742,745],{},"In the example above, this is a problem because this means that you did not copy the array. Instead, you merely created a reference to the original ",[40,743,744],{},"list",". But if you use the spread syntax...",[33,747,749],{"className":35,"code":748,"language":37,"meta":38,"style":38},"const list = [1, 2, 3] \u002F\u002F [1, 2, 3]\nconst list2 = [...list] \u002F\u002F [1, 2, 3]\n\n\u002F\u002F If we push a new item to the original\n\u002F\u002F list this time...\nlist.push(4)\n\n\u002F\u002F Only the original list is modified\nconsole.log(list) \u002F\u002F [1, 2, 3, 4]\nconsole.log(list2) \u002F\u002F [1, 2, 3]\n",[40,750,751,775,792,796,800,805,817,821,826,836],{"__ignoreMap":38},[43,752,753,755,757,759,761,763,765,767,769,771,773],{"class":45,"line":46},[43,754,57],{"class":56},[43,756,61],{"class":60},[43,758,64],{"class":56},[43,760,68],{"class":67},[43,762,71],{"class":60},[43,764,74],{"class":67},[43,766,77],{"class":60},[43,768,74],{"class":67},[43,770,82],{"class":60},[43,772,104],{"class":67},[43,774,661],{"class":49},[43,776,777,779,781,783,785,787,790],{"class":45,"line":53},[43,778,57],{"class":56},[43,780,668],{"class":60},[43,782,64],{"class":56},[43,784,68],{"class":67},[43,786,396],{"class":56},[43,788,789],{"class":67},"list] ",[43,791,661],{"class":49},[43,793,794],{"class":45,"line":88},[43,795,152],{"emptyLinePlaceholder":151},[43,797,798],{"class":45,"line":110},[43,799,684],{"class":49},[43,801,802],{"class":45,"line":129},[43,803,804],{"class":49},"\u002F\u002F list this time...\n",[43,806,807,809,811,813,815],{"class":45,"line":148},[43,808,694],{"class":67},[43,810,697],{"class":563},[43,812,567],{"class":67},[43,814,702],{"class":60},[43,816,573],{"class":67},[43,818,819],{"class":45,"line":155},[43,820,152],{"emptyLinePlaceholder":151},[43,822,823],{"class":45,"line":161},[43,824,825],{"class":49},"\u002F\u002F Only the original list is modified\n",[43,827,828,830,832,834],{"class":45,"line":174},[43,829,718],{"class":67},[43,831,721],{"class":563},[43,833,724],{"class":67},[43,835,727],{"class":49},[43,837,838,840,842,844],{"class":45,"line":187},[43,839,718],{"class":67},[43,841,721],{"class":563},[43,843,736],{"class":67},[43,845,661],{"class":49},[15,847,848],{},"If you wanted to do this without the spread syntax, you'd have to write a lot more code. Here's a simple example of how one might do it:",[33,850,852],{"className":35,"code":851,"language":37,"meta":38,"style":38},"const list = [1, 2, 3]\nconst list2 = []\n\nfor (let i = 0; i \u003C list.length; i++) {\n  list2.push(list[i])\n}\n",[40,853,854,876,887,891,932,942],{"__ignoreMap":38},[43,855,856,858,860,862,864,866,868,870,872,874],{"class":45,"line":46},[43,857,57],{"class":56},[43,859,61],{"class":60},[43,861,64],{"class":56},[43,863,68],{"class":67},[43,865,71],{"class":60},[43,867,74],{"class":67},[43,869,77],{"class":60},[43,871,74],{"class":67},[43,873,82],{"class":60},[43,875,85],{"class":67},[43,877,878,880,882,884],{"class":45,"line":53},[43,879,57],{"class":56},[43,881,668],{"class":60},[43,883,64],{"class":56},[43,885,886],{"class":67}," []\n",[43,888,889],{"class":45,"line":88},[43,890,152],{"emptyLinePlaceholder":151},[43,892,893,896,899,902,905,908,911,914,917,920,923,926,929],{"class":45,"line":110},[43,894,895],{"class":56},"for",[43,897,898],{"class":67}," (",[43,900,901],{"class":56},"let",[43,903,904],{"class":67}," i ",[43,906,907],{"class":56},"=",[43,909,910],{"class":60}," 0",[43,912,913],{"class":67},"; i ",[43,915,916],{"class":56},"\u003C",[43,918,919],{"class":67}," list.",[43,921,922],{"class":60},"length",[43,924,925],{"class":67},"; i",[43,927,928],{"class":56},"++",[43,930,931],{"class":67},") {\n",[43,933,934,937,939],{"class":45,"line":129},[43,935,936],{"class":67},"  list2.",[43,938,697],{"class":563},[43,940,941],{"class":67},"(list[i])\n",[43,943,944],{"class":45,"line":148},[43,945,201],{"class":67},[15,947,948],{},"🤦‍",[10,950,952],{"id":951},"performance","Performance",[15,954,955,962,963,968],{},[956,957,961],"a",{"href":958,"rel":959},"https:\u002F\u002Fwww.twitter.com\u002FGM_twits",[960],"nofollow","@GMano"," had a great question regarding the performance of spread operators. So, like any other performance test, my go to reference for these types of questions is ",[956,964,967],{"href":965,"rel":966},"https:\u002F\u002Fjsperf.com",[960],"JSPerf.com",".",[15,970,971,972],{},"Here's a series of tests that you can run to see the results! ",[956,973,974],{"href":974,"rel":975},"https:\u002F\u002Fjsperf.com\u002Fspread-operator-to-push\u002F2",[960],[15,977,978],{},[979,980],"img",{"alt":981,"src":982,"width":983,"height":984},"Table summary of JSPerf results","\u002Fimages\u002F2019\u002Fjsperf-spread-test.png",975,557,[15,986,987,988,991],{},"The basic takeaway is this: You want to use ",[40,989,990],{},"concat"," when working with large arrays that you want to fuse together.",[15,993,994],{},"Does that mean you should never use spread? Absolutely not! Similar to the practicality of algorithms, the data is often so small that the performance difference is negligible at best. The key thing to remember is when you're working with large data. Otherwise, keep using it to your heart's content!",[10,996,998],{"id":997},"in-summary","In Summary",[15,1000,1001],{},"The spread syntax is an incredibly powerful technique that you should use as often as you can. I'll try to come out with a worksheet to practice it soon, but feel free to let me know if you have any questions in the meantime.",[10,1003,1005],{"id":1004},"additional-resources","Additional Resources",[1007,1008,1009],"ul",{},[1010,1011,1012],"li",{},[956,1013,1016],{"href":1014,"rel":1015},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FOperators\u002FSpread_syntax",[960],"MDN Documentation",[1018,1019,1020],"style",{},"html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}",{"title":38,"searchDepth":53,"depth":53,"links":1022},[1023,1027,1031,1032,1033],{"id":12,"depth":53,"text":13,"children":1024},[1025,1026],{"id":27,"depth":88,"text":28},{"id":389,"depth":88,"text":390},{"id":520,"depth":53,"text":521,"children":1028},[1029,1030],{"id":524,"depth":88,"text":525},{"id":617,"depth":88,"text":618},{"id":951,"depth":53,"text":952},{"id":997,"depth":53,"text":998},{"id":1004,"depth":53,"text":1005},"2019-01-08T22:48:44-05:00","The spread operator is a shorthand technique introduced in ECMAScript 2015 to solve a common problem: Taking the items within an iterable and distributing them within another iterable.",false,null,"md",{"stage":1040,"planted":1034,"tended":1034,"topics":1041},"evergreen",[1042,1043],"javascript","craft","\u002Fblog\u002Fthe-spread-operator",{"title":5,"description":1035},{"loc":1044,"images":1047,"lastmod":1034},[1048],{"loc":982},"blog\u002Fthe-spread-operator",[1051,1042],"tutorials","c_15UXMn1FDW2vSHFZkTPTXbySvj45fLkOIufrl9rKs",{"newer":1054,"older":1060,"related":1066},{"title":1055,"path":1056,"tags":1057,"date":1059},"The Hyper Key","\u002Fblog\u002Fthe-hyper-key",[1058],"productivity","2019-01-09T23:52:04-05:00",{"title":1061,"path":1062,"tags":1063,"date":1065},"When Is It Enough?","\u002Fblog\u002Fwhen-is-it-enough",[1064],"career","2019-01-07T22:30:34-05:00",[1067,1074,1079],{"title":1068,"path":1069,"tags":1070,"date":1073},"My Favorite Underrated Vue 3 Feature","\u002Fblog\u002Fmy-favorite-underrated-vue-3-feature",[1071,1072,1042],"vue","css","2023-08-08T20:32:39-04:00",{"title":1075,"path":1076,"tags":1077,"date":1078},"Speeding Up Videos","\u002Fblog\u002Fspeeding-up-videos",[1042,1058],"2019-02-12T09:11:17-05:00",{"title":1080,"path":1081,"tags":1082,"date":1084},"Saturday Solutions #2","\u002Fblog\u002Fsaturday-solutions-2",[1083,1042],"code-challenges","2019-01-19T20:11:37-05:00",1795057257681]