mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-21 20:35:12 +00:00
change file structure and edit readme
This commit is contained in:
parent
db7b569476
commit
0bc06946bb
29
README.md
29
README.md
@ -6,14 +6,12 @@
|
||||
|
||||
> ❤️ **If you like this repository, [you can click here to tweet it and make it spread](https://ctt.ec/PHba4).**
|
||||
|
||||
|
||||
## 🤔 Why Awesome-Cheatsheets?
|
||||
|
||||
I always make a cheatsheet when I want to improve my skills on a programming language, a framework or a development tool. [I started doing these kind of things a long time ago on Gist](https://gist.github.com/LeCoupa) To better keep track of the history and to let people contribute to them, I reorganized everything into this single repository. Most of the content is coming from official documentations and some books I have read.
|
||||
I always make a cheatsheet when I want to improve my skills on a programming language, a framework or a development tool. [I started doing these kind of things a long time ago on Gist](https://gist.github.com/LeCoupa) To better keep track of the history and to let people contribute to them, I reorganized everything into this single repository. Most of the content is coming from official documentations and some books I have read.
|
||||
|
||||
Feel free to browse each cheatsheet to learn new things and to keep them at hand when you forgot about one command. They have been designed to provide a quick way to assess your knowledge and to save you time.
|
||||
|
||||
|
||||
## 📚 Table of Contents
|
||||
|
||||
### 📃 Languages
|
||||
@ -31,10 +29,13 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
|
||||
|
||||
#### Functional
|
||||
|
||||
* [JavaScript](languages/javascript.js)
|
||||
<details>
|
||||
<summary>JavaScript</summary>
|
||||
* [Arrays](languages/javascript/arrays.js)
|
||||
* [Objects](languages/javascript/objects.js)
|
||||
</details>
|
||||
</details>
|
||||
|
||||
|
||||
### 📦 Backend
|
||||
|
||||
<details>
|
||||
@ -45,12 +46,11 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
|
||||
* [Django](backend/django.py)
|
||||
|
||||
#### Javascript
|
||||
|
||||
|
||||
* [Feathers.js](backend/feathers.js)
|
||||
* [Moleculer](backend/moleculer.js)
|
||||
* [Node.js](backend/node.js)
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
### 🌐 Frontend
|
||||
|
||||
@ -65,8 +65,7 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
|
||||
|
||||
* [React.js](frontend/react.js)
|
||||
* [Vue.js](frontend/vue.js)
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
### 🗃️ Databases
|
||||
|
||||
@ -76,8 +75,7 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
|
||||
#### NoSQL
|
||||
|
||||
* [Redis](databases/redis.sh)
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
### 🔧 Tools
|
||||
|
||||
@ -95,14 +93,12 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
|
||||
* [Kubernetes](tools/kubernetes.sh)
|
||||
* [Nanobox Boxfile](tools/nanobox_boxfile.yml)
|
||||
* [Nanobox CLI](tools/nanobox_cli.sh)
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
## 🙌🏼 How to Contribute?
|
||||
|
||||
You are more than welcome to contribute and build your own cheatsheet for your favorite programming language, framework or development tool. Just submit changes via pull request and I will review them before merging.
|
||||
|
||||
|
||||
## 🙏🏻 Contribution
|
||||
|
||||
<table>
|
||||
@ -119,6 +115,9 @@ You are more than welcome to contribute and build your own cheatsheet for your f
|
||||
<td align="center">
|
||||
<a href="https://learnk8s.io/" target="_blank"><img src="https://pbs.twimg.com/profile_images/925127335573114880/9yCkEIe3_400x400.jpg" height="64" /></a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://www.voxygen.com/" target="_blank"><img src="https://www.voxygen.com/images/logo-wide.png" height="64" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
52
languages/javascript/objects.js
Normal file
52
languages/javascript/objects.js
Normal file
@ -0,0 +1,52 @@
|
||||
/* *******************************************************************************************
|
||||
* GLOBAL OBJECTS > ARRAY
|
||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
|
||||
* ******************************************************************************************* */
|
||||
|
||||
|
||||
// Global object: properties
|
||||
Array.length // Reflects the number of elements in an array.
|
||||
Array.prototype // Represents the prototype for the Array constructor and allows to add new properties and methods to all Array objects.
|
||||
|
||||
// Global object: methods
|
||||
Array.from(arrayLike[, mapFn[, thisArg]]) // Creates a new Array instance from an array-like or iterable object.
|
||||
Array.isArray(obj) // Returns true if a variable is an array, if not false.
|
||||
Array.of(element0[, element1[, ...[, elementN]]]) // Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
|
||||
|
||||
// Instance: properties
|
||||
arr.length // Reflects the number of elements in an array.
|
||||
|
||||
// Instance: mutator methods
|
||||
arr.copyWithin(target, start, end) // Copies a sequence of array elements within the array.
|
||||
arr.fill(value, start, end) // Fills all the elements of an array from a start index to an end index with a static value.
|
||||
arr.pop() // Removes the last element from an array and returns that element.
|
||||
arr.push([element1[, ...[, elementN]]]) // Adds one or more elements to the end of an array and returns the new length of the array.
|
||||
arr.reverse() // Reverses the order of the elements of an array in place — the first becomes the last, and the last becomes the first.
|
||||
arr.shift() // Removes the first element from an array and returns that element.
|
||||
arr.sort() // Sorts the elements of an array in place and returns the array.
|
||||
array.splice(start, deleteCount, item1, item2, ...) // Adds and/or removes elements from an array.
|
||||
arr.unshift([element1[, ...[, elementN]]]) // Adds one or more elements to the front of an array and returns the new length of the array.
|
||||
|
||||
// Instance: accessor methods
|
||||
arr.concat(value1[, value2[, ...[, valueN]]]) // Returns a new array comprised of this array joined with other array(s) and/or value(s).
|
||||
arr.includes(searchElement, fromIndex) // Determines whether an array contains a certain element, returning true or false as appropriate.
|
||||
arr.indexOf(searchElement[, fromIndex]) // Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
|
||||
arr.join(separator) // Joins all elements of an array into a string.
|
||||
arr.lastIndexOf(searchElement, fromIndex) // Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
|
||||
arr.slice(begin, end) // Extracts a section of an array and returns a new array.
|
||||
arr.toString() // Returns a string representing the array and its elements. Overrides the Object.prototype.toString() method.
|
||||
arr.toLocaleString(locales, options) // Returns a localized string representing the array and its elements. Overrides the Object.prototype.toLocaleString() method.
|
||||
|
||||
// Instance: iteration methods
|
||||
arr.entries() // Returns a new Array Iterator object that contains the key/value pairs for each index in the array.
|
||||
arr.every(callback[, thisArg]) // Returns true if every element in this array satisfies the provided testing function.
|
||||
arr.filter(callback[, thisArg]) // Creates a new array with all of the elements of this array for which the provided filtering function returns true.
|
||||
arr.find(callback[, thisArg]) // Returns the found value in the array, if an element in the array satisfies the provided testing function or undefined if not found.
|
||||
arr.findIndex(callback[, thisArg]) // Returns the found index in the array, if an element in the array satisfies the provided testing function or -1 if not found.
|
||||
arr.forEach(callback[, thisArg]) // Calls a function for each element in the array.
|
||||
arr.keys() // Returns a new Array Iterator that contains the keys for each index in the array.
|
||||
arr.map(callback[, initialValue]) // Creates a new array with the results of calling a provided function on every element in this array.
|
||||
arr.reduce(callback[, initialValue]) // Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value.
|
||||
arr.reduceRight(callback[, initialValue]) // Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value.
|
||||
arr.some(callback[, initialValue]) // Returns true if at least one element in this array satisfies the provided testing function.
|
||||
arr.values() // Returns a new Array Iterator object that contains the values for each index in the array.
|
Loading…
Reference in New Issue
Block a user