Skip to content

Instantly share code, notes, and snippets.

View NishiGaba's full-sized avatar
:octocat:

Nishi Gaba NishiGaba

:octocat:
View GitHub Profile
@NishiGaba
NishiGaba / scrollbar.css
Created July 4, 2017 10:47
Hide Scrollbar
/*TO HIDE THE SCROLLBAR*/
::-webkit-scrollbar {
display: none !important;
}
@NishiGaba
NishiGaba / iterate-over-array.js
Last active November 29, 2023 10:27
8 Methods to Iterate through Array
//8 Methods to Iterate through Array
//forEach (Do Operation for Each Item in the Array)
[1,2,3].forEach(function(item,index) {
console.log('item:',item,'index:',index);
});
//map (Translate/Map all Elements in an Array to Another Set of Values.)
const oneArray = [1,2,3];
const doubledArray = oneArray.map(function(item) {
@NishiGaba
NishiGaba / markdown.md
Last active October 10, 2017 09:13
Mastering Markdown and Emoji Cheat Sheet