Fix typos in descriptions

This commit is contained in:
Wojciech Maj
2017-12-18 00:51:27 +01:00
parent 997e045950
commit 4b97d1182d
8 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
Removes any properties except the ones specified from a JSON object.
Use `Object.keys()` method to loop over given json object and deleting keys that are not `include`d in given array.
also if you give it a special key(`childIndicator`) it will search deeply inside it to apply function to inner objects too.
Also if you give it a special key (`childIndicator`) it will search deeply inside it to apply function to inner objects too.
```js
const cleanObj = (obj, keysToKeep = [], childIndicator) => {

View File

@ -1,6 +1,6 @@
### countOccurrences
Counts the occurences of a value in an array.
Counts the occurrences of a value in an array.
Use `Array.reduce()` to increment a counter each time you encounter the specific value inside the array.

View File

@ -3,7 +3,7 @@
Converts a string from camelcase.
Use `replace()` to remove underscores, hyphens and spaces and convert words to camelcase.
Omit the scond argument to use a default separator of `_`.
Omit the second argument to use a default separator of `_`.
```js
const fromCamelCase = (str, separator = '_') =>

View File

@ -2,7 +2,7 @@
Returns the native type of a value.
Returns lower-cased constructor name of value, "undefined" or "null" if value is undefined or null
Returns lowercased constructor name of value, "undefined" or "null" if value is undefined or null
```js
const getType = v =>

View File

@ -1,6 +1,6 @@
### initializeArrayWithRange
Initialized an array containing the numbers in the specified range.
Initializes an array containing the numbers in the specified range.
Use `Array(end-start)` to create an array of the desired length, `Array.map()` to fill with the desired values in a range.
You can omit `start` to use a default value of `0`.

View File

@ -1,6 +1,6 @@
### take
Returns an array with n elements removed from the beggining.
Returns an array with n elements removed from the beginning.
Use `Array.slice()` to create a slice of the array with `n` elements taken from the beginning.