- Notifications
You must be signed in to change notification settings - Fork230
Array methods#316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Array methods#316
Changes fromall commits
Commits
Show all changes
40 commits Select commitHold shift + click to select a range
ea23430 Update article.md
nahuelcoder1a5fbd5 Update article.md
nahuelcoder77e3e5b Updated article.md
nahuelcoder2568298 Updated article
nahuelcoder71a37c7 Updated article
nahuelcoder1c33c51 Updated article
nahuelcoder1836c4a Updated traslation
nahuelcoderf49120e Updated traslation
nahuelcoder11e85cf Updated traslation
nahuelcodere983eb0 Updated article
nahuelcoder6154afd Updated traslation
nahuelcodera866495 Merge pull request #2 from nahuelcoder/nahuelcoder-patch-1-Array-methods
nahuelcoder4610c80 Update task.md
nahuelcoder415c6d3 Update solution.js
nahuelcoderd4f3cf3 Update task.md
nahuelcoder9d676cd Update 1-js/05-data-types/05-array-methods/11-array-unique/solution.md
nahuelcoder42a081e Update 1-js/05-data-types/05-array-methods/12-reduce-object/task.md
nahuelcoderaeca5bf Update 1-js/05-data-types/05-array-methods/12-reduce-object/task.md
nahuelcoder2c7509d Update 1-js/05-data-types/05-array-methods/3-filter-range-in-place/ta…
nahuelcoder6534a30 Update 1-js/05-data-types/05-array-methods/6-calculator-extendable/so…
nahuelcodera28bdfa Update 1-js/05-data-types/05-array-methods/6-calculator-extendable/ta…
nahuelcoder88b688a Update 1-js/05-data-types/05-array-methods/7-map-objects/solution.md
nahuelcoder77c3aa5 Update 1-js/05-data-types/05-array-methods/7-map-objects/solution.md
nahuelcoder55ffb74 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderbd70974 Update 1-js/05-data-types/05-array-methods/9-shuffle/solution.md
nahuelcoderea5b99c Update 1-js/05-data-types/05-array-methods/article.md
nahuelcodera294675 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder28b7b22 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderd047c86 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder0667f15 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder3efcd54 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder5b9c37c Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder2792030 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderbfa2c55 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcodere62eee8 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder458f3f6 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoder5f8f106 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderbeba4b1 Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderb8e291c Update 1-js/05-data-types/05-array-methods/article.md
nahuelcoderb070c86 Update 1-js/05-data-types/05-array-methods/11-array-unique/solution.md
vplentinaxFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
8 changes: 4 additions & 4 deletions1-js/05-data-types/05-array-methods/1-camelcase/_js.view/solution.js
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| function camelize(str) { | ||
| return str | ||
| .split('-') //separa 'my-long-word'en el array ['my', 'long', 'word'] | ||
| .map( | ||
| //convierte en mayúscula todas las primeras letras de los elementos del array excepto por el primero | ||
| //convierte ['my', 'long', 'word']en ['my', 'Long', 'Word'] | ||
| (word, index) => index == 0 ? word : word[0].toUpperCase() + word.slice(1) | ||
| ) | ||
| .join(''); //une ['my', 'Long', 'Word']en 'myLongWord' | ||
| } |
10 changes: 5 additions & 5 deletions1-js/05-data-types/05-array-methods/1-camelcase/task.md
This file contains hidden or 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
8 changes: 4 additions & 4 deletions1-js/05-data-types/05-array-methods/10-average-age/task.md
This file contains hidden or 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
21 changes: 11 additions & 10 deletions1-js/05-data-types/05-array-methods/11-array-unique/solution.md
This file contains hidden or 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
10 changes: 5 additions & 5 deletions1-js/05-data-types/05-array-methods/11-array-unique/task.md
This file contains hidden or 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
16 changes: 8 additions & 8 deletions1-js/05-data-types/05-array-methods/12-reduce-object/task.md
This file contains hidden or 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
2 changes: 1 addition & 1 deletion1-js/05-data-types/05-array-methods/2-filter-range/_js.view/solution.js
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| function filterRange(arr, a, b) { | ||
| //agregamos paréntesis en torno a la expresión para mayor legibilidad | ||
| return arr.filter(item => (a <= item && item <= b)); | ||
| } |
6 changes: 3 additions & 3 deletions1-js/05-data-types/05-array-methods/2-filter-range/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| ```js run demo | ||
| function filterRange(arr, a, b) { | ||
| //agregamos paréntesis en torno a la expresión para mayor legibilidad | ||
| return arr.filter(item => (a <= item && item <= b)); | ||
| } | ||
| let arr = [5, 3, 8, 1]; | ||
| let filtered = filterRange(arr, 1, 4); | ||
| alert( filtered ); // 3,1 (valores dentro del rango) | ||
| alert( arr ); // 5,3,8,1 (array original no modificado) | ||
| ``` |
12 changes: 6 additions & 6 deletions1-js/05-data-types/05-array-methods/2-filter-range/task.md
This file contains hidden or 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
2 changes: 1 addition & 1 deletion1-js/05-data-types/05-array-methods/3-filter-range-in-place/_js.view/solution.js
This file contains hidden or 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
4 changes: 2 additions & 2 deletions1-js/05-data-types/05-array-methods/3-filter-range-in-place/solution.md
This file contains hidden or 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
10 changes: 5 additions & 5 deletions1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md
This file contains hidden or 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
4 changes: 2 additions & 2 deletions1-js/05-data-types/05-array-methods/4-sort-back/task.md
This file contains hidden or 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
2 changes: 1 addition & 1 deletion1-js/05-data-types/05-array-methods/5-copy-sort-array/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Podemos usar`slice()`para crear una copia y realizar el ordenamiento en ella: | ||
| ```js run | ||
| function copySorted(arr) { | ||
8 changes: 4 additions & 4 deletions1-js/05-data-types/05-array-methods/5-copy-sort-array/task.md
This file contains hidden or 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
8 changes: 4 additions & 4 deletions1-js/05-data-types/05-array-methods/6-array-get-names/task.md
This file contains hidden or 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
4 changes: 2 additions & 2 deletions1-js/05-data-types/05-array-methods/6-calculator-extendable/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| -Por favor ten en cuenta cómo son almacenados los métodos. Simplemente son agregados a la propiedad`this.methods`. | ||
| -Todos los test y conversiones son hechas con el método`calculate`. En el futuro puede ser extendido para soportar expresiones más complejas. |
20 changes: 10 additions & 10 deletions1-js/05-data-types/05-array-methods/6-calculator-extendable/task.md
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.