vasanthk / js-bits Goto Github PK
View Code? Open in Web Editor NEW✨ JavaScript concepts with code ✨
✨ JavaScript concepts with code ✨
https://jsperf.com/array-prototype-push-apply-vs-concat/81
But that it's better on small arrays.
https://jsperf.com/array-prototype-push-apply-vs-concat/20
Line 74 in 3474c38
In your description about pass by value vs pass by reference I believe you confuse the concepts of value types and shallow copying. The Array.prototype.slice
function does a shallow of the array, meaning a new array is constructed but with references to the objects of the original array. I believe this description is both factually incorrect and confusing to beginners.
Basics of using functional programming concepts in JavaScript.
Number.MIN_VALUE property represents the smallest positive numeric value
so console.log(Number.MIN_VALUE < 0); // false.
is legit and not WTF
https://github.com/vasanthk/js-bits/blob/master/js/number-maxmin-val.js
Hey @vasanthk , thanks for your contribution.
Some Chinese JavaScript beginners or developers are not good at English, so I started to translation this repository some days ago, and will translate at least one file per day.
But maybe I need your permission to keep on translating? And I'll be proud to be an official cn-doc of your repository.
You can find Chinese version in here: js-bits-cn.
THX.
Maybe gist can be merged.
I found a issue on https://github.com/vasanthk/js-bits/blob/master/js/array-slice-splice.js
Which is wrong, -1 should be 20 in the above example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.