From 0bc06946bbd35f48e437650e816ebc0654acbfde Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Sat, 14 Apr 2018 00:09:02 +0100 Subject: [PATCH 1/8] change file structure and edit readme --- README.md | 29 +++++------ .../{javascript.js => javascript/arrays.js} | 0 languages/javascript/objects.js | 52 +++++++++++++++++++ 3 files changed, 66 insertions(+), 15 deletions(-) rename languages/{javascript.js => javascript/arrays.js} (100%) create mode 100644 languages/javascript/objects.js diff --git a/README.md b/README.md index 5a8b6c1..d13f3ba 100644 --- a/README.md +++ b/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) +
+JavaScript +* [Arrays](languages/javascript/arrays.js) +* [Objects](languages/javascript/objects.js) +
- ### 📦 Backend
@@ -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) -
- + ### 🌐 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) - - + ### 🗃️ 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) - - + ### 🔧 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) - - + ## 🙌🏼 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 @@ -119,6 +115,9 @@ You are more than welcome to contribute and build your own cheatsheet for your f +
+ +
diff --git a/languages/javascript.js b/languages/javascript/arrays.js similarity index 100% rename from languages/javascript.js rename to languages/javascript/arrays.js diff --git a/languages/javascript/objects.js b/languages/javascript/objects.js new file mode 100644 index 0000000..fa7a5e2 --- /dev/null +++ b/languages/javascript/objects.js @@ -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. From 98fe3cd91288095712767245ef8ffefca3b942eb Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Sat, 14 Apr 2018 01:11:26 +0100 Subject: [PATCH 2/8] objects addition in js language --- README.md | 4 +- languages/javascript/objects.js | 80 +++++++++++++++------------------ 2 files changed, 38 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index d13f3ba..9287711 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand
JavaScript -* [Arrays](languages/javascript/arrays.js) * [Objects](languages/javascript/objects.js) +* [Arrays](languages/javascript/arrays.js)
@@ -116,7 +116,7 @@ You are more than welcome to contribute and build your own cheatsheet for your f - + diff --git a/languages/javascript/objects.js b/languages/javascript/objects.js index fa7a5e2..eb9e388 100644 --- a/languages/javascript/objects.js +++ b/languages/javascript/objects.js @@ -1,52 +1,44 @@ /* ******************************************************************************************* - * GLOBAL OBJECTS > ARRAY - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array + * GLOBAL OBJECTS > OBJECT + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object * ******************************************************************************************* */ - // 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. +Object.length // length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. Has a value of 1. +Object.prototype // Represents the Object prototype object and allows to add new properties and methods to all objects of type Object. -// 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. +// Methods of the Object constructor +Object.assign(target, ...sources) // Copies the values of all enumerable own properties from one or more source objects to a target object. method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object +Object.create(MyObject) // Creates a new object with the specified prototype object and properties. The object which should be the prototype of the newly-created object. +Object.defineProperty(obj, prop, descriptor) // Adds the named property described by a given descriptor to an object. +Object.defineProperties(obj, props) // Adds the named properties described by the given descriptors to an object. +Object.entries(obj) // Returns an array containing all of the [key, value] pairs of a given object's own enumerable string properties. +Object.freeze(obj) // Freezes an object: other code can't delete or change any properties. +Object.getOwnPropertyDescriptor(obj, prop) // Returns a property descriptor for a named property on an object. +Object.getOwnPropertyDescriptors(obj) // Returns an object containing all own property descriptors for an object. +Object.getOwnPropertyNames(obj) // Returns an array containing the names of all of the given object's own enumerable and non-enumerable properties. +Object.getOwnPropertySymbols(obj) // Returns an array of all symbol properties found directly upon a given object. +Object.getPrototypeOf(obj) // Returns the prototype of the specified object. +Object.is(value1, value2); // Compares if two values are the same value. Equates all NaN values (which differs from both Abstract Equality Comparison and Strict Equality Comparison). +Object.isExtensible(obj) // Determines if extending of an object is allowed. +Object.isFrozen(obj) // Determines if an object was frozen. +Object.isSealed(obj) // Determines if an object is sealed. +Object.keys(obj) // Returns an array containing the names of all of the given object's own enumerable string properties. +Object.preventExtensions(obj) // Prevents any extensions of an object. +Object.seal(obj) // Prevents other code from deleting properties of an object. +Object.setPrototypeOf(obj, prototype) // Sets the prototype (i.e., the internal [[Prototype]] property). +Object.values(obj) // Returns an array containing the values that correspond to all of a given object's own enumerable string properties. -// Instance: properties -arr.length // Reflects the number of elements in an array. +// Object instances and Object prototype object (Object.prototype.property or Object.prototype.method()) +// Properties +obj.constructor // Specifies the function that creates an object's prototype. +obj.__proto__ // Points to the object which was used as prototype when the object was instantiated. -// 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. +// Methods +obj.hasOwnProperty(prop) // Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain. +prototypeObj.isPrototypeOf(object) // Returns a boolean indicating whether the object this method is called upon is in the prototype chain of the specified object. +obj.propertyIsEnumerable(prop) // Returns a boolean indicating if the internal ECMAScript [[Enumerable]] attribute is set. +obj.toLocaleString() // Calls toString(). +obj.toString() // Returns a string representation of the object. +object.valueOf() // Returns the primitive value of the specified object. -// 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. From 65bbc182337ab5daba9e80186196eb88e47c348f Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Sat, 14 Apr 2018 01:21:36 +0100 Subject: [PATCH 3/8] update readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9287711..0f66519 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,15 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Functional -
-JavaScript +
+ JavaScript + * [Objects](languages/javascript/objects.js) + * [Arrays](languages/javascript/arrays.js) +
+
### 📦 Backend @@ -116,7 +120,7 @@ You are more than welcome to contribute and build your own cheatsheet for your f - + From 40ea7c32834c81c2475771f4867b2c68a5f67e46 Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Sat, 14 Apr 2018 01:22:33 +0100 Subject: [PATCH 4/8] typo --- languages/javascript/objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/javascript/objects.js b/languages/javascript/objects.js index eb9e388..982a734 100644 --- a/languages/javascript/objects.js +++ b/languages/javascript/objects.js @@ -4,7 +4,7 @@ * ******************************************************************************************* */ // Global object: properties -Object.length // length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. Has a value of 1. +Object.length // length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. Has a value of 1. Object.prototype // Represents the Object prototype object and allows to add new properties and methods to all objects of type Object. // Methods of the Object constructor From d5fc4fceb53fa5bc45e7a6dd4bc2de90dfdaa653 Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Fri, 20 Apr 2018 00:05:42 +0100 Subject: [PATCH 5/8] keep the javascript cheatsheet into one single file --- README.md | 9 +--- .../{javascript/arrays.js => javascript.js} | 45 ++++++++++++++++++- languages/javascript/objects.js | 44 ------------------ 3 files changed, 45 insertions(+), 53 deletions(-) rename languages/{javascript/arrays.js => javascript.js} (53%) delete mode 100644 languages/javascript/objects.js diff --git a/README.md b/README.md index 0f66519..d526aa4 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,7 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Functional -
- JavaScript - -* [Objects](languages/javascript/objects.js) - -* [Arrays](languages/javascript/arrays.js) - -
+* [JavaScript](languages/javaScript.js) diff --git a/languages/javascript/arrays.js b/languages/javascript.js similarity index 53% rename from languages/javascript/arrays.js rename to languages/javascript.js index fa7a5e2..932893e 100644 --- a/languages/javascript/arrays.js +++ b/languages/javascript.js @@ -1,9 +1,52 @@ +/* ******************************************************************************************* + * GLOBAL OBJECTS > OBJECT + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object + * ******************************************************************************************* */ + +// Global object: properties +Object.length // length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. Has a value of 1. +Object.prototype // Represents the Object prototype object and allows to add new properties and methods to all objects of type Object. + +// Methods of the Object constructor +Object.assign(target, ...sources) // Copies the values of all enumerable own properties from one or more source objects to a target object. method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object +Object.create(MyObject) // Creates a new object with the specified prototype object and properties. The object which should be the prototype of the newly-created object. +Object.defineProperty(obj, prop, descriptor) // Adds the named property described by a given descriptor to an object. +Object.defineProperties(obj, props) // Adds the named properties described by the given descriptors to an object. +Object.entries(obj) // Returns an array containing all of the [key, value] pairs of a given object's own enumerable string properties. +Object.freeze(obj) // Freezes an object: other code can't delete or change any properties. +Object.getOwnPropertyDescriptor(obj, prop) // Returns a property descriptor for a named property on an object. +Object.getOwnPropertyDescriptors(obj) // Returns an object containing all own property descriptors for an object. +Object.getOwnPropertyNames(obj) // Returns an array containing the names of all of the given object's own enumerable and non-enumerable properties. +Object.getOwnPropertySymbols(obj) // Returns an array of all symbol properties found directly upon a given object. +Object.getPrototypeOf(obj) // Returns the prototype of the specified object. +Object.is(value1, value2); // Compares if two values are the same value. Equates all NaN values (which differs from both Abstract Equality Comparison and Strict Equality Comparison). +Object.isExtensible(obj) // Determines if extending of an object is allowed. +Object.isFrozen(obj) // Determines if an object was frozen. +Object.isSealed(obj) // Determines if an object is sealed. +Object.keys(obj) // Returns an array containing the names of all of the given object's own enumerable string properties. +Object.preventExtensions(obj) // Prevents any extensions of an object. +Object.seal(obj) // Prevents other code from deleting properties of an object. +Object.setPrototypeOf(obj, prototype) // Sets the prototype (i.e., the internal [[Prototype]] property). +Object.values(obj) // Returns an array containing the values that correspond to all of a given object's own enumerable string properties. + +// Object instances and Object prototype object (Object.prototype.property or Object.prototype.method()) +// Properties +obj.constructor // Specifies the function that creates an object's prototype. +obj.__proto__ // Points to the object which was used as prototype when the object was instantiated. + +// Methods +obj.hasOwnProperty(prop) // Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain. +prototypeObj.isPrototypeOf(object) // Returns a boolean indicating whether the object this method is called upon is in the prototype chain of the specified object. +obj.propertyIsEnumerable(prop) // Returns a boolean indicating if the internal ECMAScript [[Enumerable]] attribute is set. +obj.toLocaleString() // Calls toString(). +obj.toString() // Returns a string representation of the object. +object.valueOf() // Returns the primitive value of the specified object. + /* ******************************************************************************************* * 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. diff --git a/languages/javascript/objects.js b/languages/javascript/objects.js deleted file mode 100644 index 982a734..0000000 --- a/languages/javascript/objects.js +++ /dev/null @@ -1,44 +0,0 @@ -/* ******************************************************************************************* - * GLOBAL OBJECTS > OBJECT - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object - * ******************************************************************************************* */ - -// Global object: properties -Object.length // length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. Has a value of 1. -Object.prototype // Represents the Object prototype object and allows to add new properties and methods to all objects of type Object. - -// Methods of the Object constructor -Object.assign(target, ...sources) // Copies the values of all enumerable own properties from one or more source objects to a target object. method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object -Object.create(MyObject) // Creates a new object with the specified prototype object and properties. The object which should be the prototype of the newly-created object. -Object.defineProperty(obj, prop, descriptor) // Adds the named property described by a given descriptor to an object. -Object.defineProperties(obj, props) // Adds the named properties described by the given descriptors to an object. -Object.entries(obj) // Returns an array containing all of the [key, value] pairs of a given object's own enumerable string properties. -Object.freeze(obj) // Freezes an object: other code can't delete or change any properties. -Object.getOwnPropertyDescriptor(obj, prop) // Returns a property descriptor for a named property on an object. -Object.getOwnPropertyDescriptors(obj) // Returns an object containing all own property descriptors for an object. -Object.getOwnPropertyNames(obj) // Returns an array containing the names of all of the given object's own enumerable and non-enumerable properties. -Object.getOwnPropertySymbols(obj) // Returns an array of all symbol properties found directly upon a given object. -Object.getPrototypeOf(obj) // Returns the prototype of the specified object. -Object.is(value1, value2); // Compares if two values are the same value. Equates all NaN values (which differs from both Abstract Equality Comparison and Strict Equality Comparison). -Object.isExtensible(obj) // Determines if extending of an object is allowed. -Object.isFrozen(obj) // Determines if an object was frozen. -Object.isSealed(obj) // Determines if an object is sealed. -Object.keys(obj) // Returns an array containing the names of all of the given object's own enumerable string properties. -Object.preventExtensions(obj) // Prevents any extensions of an object. -Object.seal(obj) // Prevents other code from deleting properties of an object. -Object.setPrototypeOf(obj, prototype) // Sets the prototype (i.e., the internal [[Prototype]] property). -Object.values(obj) // Returns an array containing the values that correspond to all of a given object's own enumerable string properties. - -// Object instances and Object prototype object (Object.prototype.property or Object.prototype.method()) -// Properties -obj.constructor // Specifies the function that creates an object's prototype. -obj.__proto__ // Points to the object which was used as prototype when the object was instantiated. - -// Methods -obj.hasOwnProperty(prop) // Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain. -prototypeObj.isPrototypeOf(object) // Returns a boolean indicating whether the object this method is called upon is in the prototype chain of the specified object. -obj.propertyIsEnumerable(prop) // Returns a boolean indicating if the internal ECMAScript [[Enumerable]] attribute is set. -obj.toLocaleString() // Calls toString(). -obj.toString() // Returns a string representation of the object. -object.valueOf() // Returns the primitive value of the specified object. - From 93264ac0e9818b7c74629d6069c47040de4675c2 Mon Sep 17 00:00:00 2001 From: Stephane Moreau Date: Fri, 20 Apr 2018 00:08:03 +0100 Subject: [PATCH 6/8] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d526aa4..32dce1f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Feel free to browse each cheatsheet to learn new things and to keep them at hand #### Functional -* [JavaScript](languages/javaScript.js) +* [JavaScript](languages/javascript.js) From 689efabdcdb930228639a16075b4d570bb49b748 Mon Sep 17 00:00:00 2001 From: Van Nguyen Date: Mon, 30 Apr 2018 10:51:31 -0700 Subject: [PATCH 7/8] fix typo --- frontend/html5.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/html5.html b/frontend/html5.html index 24fd039..addcc70 100644 --- a/frontend/html5.html +++ b/frontend/html5.html @@ -110,7 +110,7 @@ step="" name="" size="" -mupltiple +multiple required autofocus From 20e8f9c9b1edc8072b5a4a62aa8848932bd48ff1 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 30 Apr 2018 15:14:49 -0400 Subject: [PATCH 8/8] Fixed "enctype" description. Enctype does encoding and not encryption. --- frontend/html5.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/html5.html b/frontend/html5.html index 24fd039..0b5da5f 100644 --- a/frontend/html5.html +++ b/frontend/html5.html @@ -81,7 +81,7 @@ method="somefunction()" -enctype="" +enctype="" autocomplete="" novalidate accept-charset=""