题解 | #头部插入元素#
头部插入元素
http://www.nowcoder.com/practice/6702abe9efcd482aac433f60896d9e1a
{"css":"","js":"function _unshift(array,value) {\n // 补全代码\n let len = array.length;\n for(let i = len; i > 0; i--){\n array[i] = array[i-1];\n }\n array[0] = value;\n return array;\n}","html":"","libs":[]}