This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with arrays | |
const dupArr = [1, 1, 2, 3, 1]; | |
const uniArr = [...(new Set(dupArr))]; | |
// [1, 2, 3] | |
// with objects on a key. | |
const dupObj = [{ id: 1, value: 'a' }, { id: 2, value: 'b' }, { id: 1, value: 'c' }]; | |
const uniKeys = [...(new Set(dupObj.map(({ id }) => id)))]; | |
// [ '1', '2' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Create a repository | |
git init <repo-name> | |
git clone <url> <directory-name> | |
git clone -o <remote-name> <url> | |
- Commiting | |
git add <filename> | |
git commit -m "Commit Message" | |
git commit -am "Commit Message" |