thanks @x2ero for pointing me to it, I actually meant to say:
⚠️ Be careful the parameters are very different when using `splice` and `toSpliced`

> arr = [0,1,2,3]
[ 0, 1, 2, 3 ]
> arr.toSpliced(2)
[ 0, 1 ]
> arr.splice(0, 2)
[ 0, 1 ]
> arr
[ 2, 3 ]

worth a #jskata I guess
#JavaScript

it's a tiny #jskata, but I just had to try it and so I wrote a #kata, just one test to solve:

https://jskatas.org/katas/es6/language/generator/send-return/

#JavaScript #generator #streaming #learning

Just did a #jskata on `return` and `yield` inside #generators [1]. Now that I did it it makes sense, but in 1h I will have forgotten it again. Is it not that natural, or complicated or is it me?

One kata a day, pushes growth your way.

[1] https://jskatas.org/katas/es6/language/generator/return/

#JavaScript #learning #generator

Generator – `return` inside a generator function

A kata to (re-)learn about Generator | `return` inside a generator function | Return statement in a generator function is special. | 9 tests to solve | Difficulty Level: ADVANCED

JavaScript Katas - Continuously Learn JavaScript. Your Way.

Wanna try and play around with `Object.groupBy()`, which is new pretty in #JavaScript go to
https://jskatas.org/katas/es15/language/object-api/groupBy/ πŸš€

#jskata #learning #javascript #testdriven

Object API – `Object.groupBy()`

A kata to (re-)learn about Object API | `Object.groupBy()` | | 8 tests to solve | Difficulty Level: BEGINNER

JavaScript Katas - Continuously Learn JavaScript. Your Way.

The #jskata for this is in the making.
Get ahead by learning all the other 132 katas on https://jskatas.org

#learning #javascript #testdriven

Home

jskatas.org | JavaScript Katas | Continuously Learn JavaScript. Your Way.

JavaScript Katas - Continuously Learn JavaScript. Your Way.

Also inspired by our last night's #jslang #meetup I built a #JSKata for you all to practice #JavaScript Proxy a bit.
The basics:

https://jskatas.org/katas/es6/language/proxy/basics/

#testDriven #tests #kata #koan #learn

Proxy – basics

A kata to (re-)learn about Proxy | basics | A Proxy can intercept all accesses on a target object | 10 tests to solve | Difficulty Level: INTERMEDIATE

JavaScript Katas - Continuously Learn JavaScript. Your Way.

A new #jskata for learning #JavaScript in depth.

I just released: "The Object() constructor called as a function."
And there are things to learn, even though I do #JS for many years already.

Have fun: https://jskatas.org/katas/es1/language/object-api/constructor/?source=mastodon

`Object()` (as per ES1 spec)

A kata to (re-)learn about Object API | `Object()` (as per ES1 spec) | The `Object()` constructor called as a function performs a type conversion. | 8 tests to solve | Difficulty Level: INTERMEDIATE

JavaScript Katas - Continuously Learn JavaScript. Your Way.

Interesting, `array.shift()` was introduced in ECMAScript 3 [1] in 1999, see chapter 15.4.4.9. At least it's not part of the v2 spec [2] from 1998. In v2 the last chapter in 15.4.4 is 15.4.4.5.

Expect a #jskata on `array.shift()` to come soon.

[1] https://www.ecma-international.org/wp-content/uploads/ECMA-262_3rd_edition_december_1999.pdf
[2] https://www.ecma-international.org/wp-content/uploads/ECMA-262_2nd_edition_august_1998.pdf

#JavaScript #specification #jskatas

As usual, when starting a new #jskata it starts out with one tiny thing and becomes five katas.
Three of them are done and will be online soon.

This time its all about bitwise shift operators. And I feel I just scratched the surface.

#learn #javascript #yourWay
#koans