Commit Graph

3905 Commits

Author SHA1 Message Date
Elder Henrique Souza
101bcf6d8b refactor to account for variadic functions
altough certainly more verbose, this version accounts for variadic functions such as Math.min that can't represent it's arity with the length property properly. for such cases you can pass the optional argument arity (as in the edited example).
what do you think?
2017-12-12 20:26:01 -02:00
Angelos Chalaris
e602ba0195 Build README 2017-12-13 00:11:27 +02:00
Adrian Klimek
393b1a6a59 Update the snippet description (odd or even number) 2017-12-12 23:11:03 +01:00
Angelos Chalaris
0cd80b4840 Merge pull request #49 from sergei-zelinsky/deep-flatten-array-fix
fix deep flatten array implementation
2017-12-13 00:09:47 +02:00
Sergei Zelinsky
8250b4e891 fix deep flatten array implementation 2017-12-13 00:02:52 +02:00
Angelos Chalaris
daf92b9fde Merge pull request #48 from iamsoorena/master
fixing minor type bug in flatten function
2017-12-12 23:41:45 +02:00
Adrian Klimek
8ff6d9bff1 Simplify isEven function 2017-12-12 22:37:34 +01:00
Soorena
92066207f8 Update flatten-array.md
add closing bracket to the comment part
2017-12-13 00:56:44 +03:30
Jussi Saurio
c9116d54b8 build readme 2017-12-12 22:28:46 +02:00
Jussi Saurio
65126fe4cc Make 'Anagrams of string' fully functional
Gets rid of mutable `.push` (and param reassignment) inside `.map`
2017-12-12 22:23:44 +02:00
macsmac
d4681ce4c3 Added getType function 2017-12-13 00:33:36 +05:00
Angelos Chalaris
adebe1af1c Build README 2017-12-12 20:58:47 +02:00
Angelos Chalaris
e7887be88d Merge pull request #43 from elderhsouza/patch-3
get max value from array
2017-12-12 20:57:55 +02:00
Angelos Chalaris
8a814f18e9 Update description of min array value, build README 2017-12-12 20:57:39 +02:00
Angelos Chalaris
17d61ce31c Merge pull request #42 from elderhsouza/patch-2
get minimum value from an array
2017-12-12 20:56:30 +02:00
Angelos Chalaris
609bc3cdd4 Update RGB to Hex, build README 2017-12-12 20:54:57 +02:00
Angelos Chalaris
262a108c43 Merge pull request #9 from kutsan/patch-1
Update RGB to hexadecimal to new bitwise version
2017-12-12 20:52:33 +02:00
Kutsan Kaplan
b3c8beb5c9 Update RGB to hexadecimal to new bitwise version 2017-12-12 21:42:56 +03:00
Christopher Engels
aeb5d14f46 Refactor measure-time-taken-by-function from spread syntax to callback function 2017-12-12 19:18:53 +01:00
Elder Henrique Souza
7abb34d064 added return value in the description 2017-12-12 16:12:39 -02:00
Elder Henrique Souza
fa5d32f726 get max value from array
just a version to get the max value from an array
2017-12-12 16:11:13 -02:00
Elder Henrique Souza
afd6e0a346 added missing square bracket on example 2017-12-12 16:04:52 -02:00
Elder Henrique Souza
b5e886f7a3 get minimum value from an array
I think it shows a good use of the spread operator in variadic functions
2017-12-12 15:53:20 -02:00
Angelos Chalaris
2599150e76 Build README 2017-12-12 19:21:31 +02:00
Angelos Chalaris
7eff1fa27c Merge pull request #40 from elderhsouza/patch-1
minor refactor to the fibonacci array generator
2017-12-12 19:21:10 +02:00
Angelos Chalaris
a69bd30660 Update fibonacci-array-generator.md 2017-12-12 19:20:56 +02:00
Angelos Chalaris
6c5d894205 Updated filename 2017-12-12 19:07:42 +02:00
Angelos Chalaris
ad9871f77d Merge pull request #39 from ecwyne/patch-1
fix typo
2017-12-12 19:07:04 +02:00
Robin Thomas
a1a5fb291b Added async function chain 2017-12-12 10:46:05 -06:00
Elder Henrique Souza
1a6804f988 Update fibonacci-array-generator.md
The fibonacci sequence being zero indexed as well as the arrays, I think we could just initialize an array with the passed length, fill it with zeroes and use the indexes for the first positions.
2017-12-12 14:45:24 -02:00
Eric Wyne
8aa41d8b82 fix typo 2017-12-12 08:44:40 -08:00
Angelos Chalaris
c637b7c193 Added array shuffle 2017-12-12 18:39:24 +02:00
King
fd4bcd9948 Merge branch 'master' of https://github.com/Chalarangelo/30-seconds-of-code into add-chunkArray 2017-12-12 11:32:33 -05:00
King
8e6f5b2570 add chunk-array.md 2017-12-12 11:30:50 -05:00
Angelos Chalaris
4967ef8931 Updated snippets
Mainly for better readability
2017-12-12 18:21:53 +02:00
Angelos Chalaris
67beb3b785 Merge pull request #36 from conblem/pipe
Added Pipe snippet
2017-12-12 18:15:59 +02:00
Angelos Chalaris
2dae7447cc Scroll position title size 2017-12-12 18:12:59 +02:00
Angelos Chalaris
d44e228e14 Deep flatten and housekeeping
Changed original flatten to be named deepFlatten, added normal flatten, improved some other snippets.
2017-12-12 18:12:24 +02:00
Angelos Chalaris
721e1f1d79 Palindrome updated 2017-12-12 18:08:03 +02:00
conblem
2a6a2b2057 Use full name for reduce 2017-12-12 17:03:14 +01:00
Angelos Chalaris
0142b9e3f6 Build README 2017-12-12 18:02:15 +02:00
Angelos Chalaris
5ea68ecb00 Merge pull request #35 from jobsamuel/master
refactor(anagrams): improve code legibility
2017-12-12 18:01:33 +02:00
conblem
741e86307f Pipe example 2017-12-12 17:01:01 +01:00
Jobsamuel Núñez
4c7d2c50c9 refactor(anagrams): improve code legibility 2017-12-12 11:54:50 -04:00
Angelos Chalaris
08a5aff10e Update snippet-template.md 2017-12-12 17:51:37 +02:00
Angelos Chalaris
2e9315b0ec Added samples 2017-12-12 17:50:08 +02:00
Angelos Chalaris
d43b538dc1 Merge pull request #27 from overflowsith/is-divisible-by
add a isDivisible function
2017-12-12 16:32:36 +02:00
Angelos Chalaris
548bba6543 Update README.md 2017-12-12 16:32:24 +02:00
Angelos Chalaris
c7a4dae8b8 Update divisible-by-number.md 2017-12-12 16:31:39 +02:00
Angelos Chalaris
9e761f23d5 Fix typos and missing highlighting 2017-12-12 16:25:13 +02:00