8000 GitHub - leer0911/vuepress: Minimalistic Vue-powered static site generator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

leer0911/vuepress

 
 

Repository files navigation

总结

  • Write a JavaScript function to check whether an 'input' is an array or not.
toString.call(input) === '[object Array]';
  • Write a JavaScript function to clone an array.
arr.slice(0);
  • Write a JavaScript function to get the first element of an array. Passing a parameter 'n' will return the first 'n' elements of the array.
if (n === null) {
  return arr[0];
} else {
  arr.slice(0, n);
}
  • Write a JavaScript function to get the last element of an array. Passing a parameter 'n' will return the last 'n' elements of the array.
if (n === null) {
  return arr[0];
} else {
  arr.slice(0, n);
}

About

Minimalistic Vue-powered static site generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 65.4%
  • Vue 26.0%
  • CSS 8.0%
  • HTML 0.6%
2AAE
0