Mark isue as resolved, Edit, Publish.
Mark isue as resolved
Edit
Publish
But Task and Example are still inconsistent, because typeof null !== "null".
typeof null !== "null"
fixed. How I can publish again?
Because it's the most missing feature of the language :D
It's just the first thing that came to mind. I plan more interesting things later
Why is it that people keep making kata about telling types apart in js?
Yep. Address the other issue and you can republish.
Thank you! Already added
Description is inconsistent.
You are given an array containing elements of various data types. Your task is to return an object that will contain the number of each data type in the array.
Use typeof to determine the type of each element.
typeof
expect(typeCounter([true, false, 'test', 100, null, [1, 2], { a: 1 }, 0])).to.deep.equal({ number: 2, string: 1, boolean: 2, null: 1
How does this not expect { boolean: 2, string: 1, number: 2, object: 3 } ?
{ boolean: 2, string: 1, number: 2, object: 3 }
missing chai.config.truncateThreshold = 0
chai.config.truncateThreshold = 0
Loading collection data...
Mark isue as resolved
,Edit
,Publish
.But Task and Example are still inconsistent, because
typeof null !== "null"
.fixed. How I can publish again?
Because it's the most missing feature of the language :D
It's just the first thing that came to mind. I plan more interesting things later
Why is it that people keep making kata about telling types apart in js?
Yep. Address the other issue and you can republish.
Thank you! Already added
Description is inconsistent.
How does this not expect
{ boolean: 2, string: 1, number: 2, object: 3 }
?missing
chai.config.truncateThreshold = 0