ruby-2.7 adds filter_map which combines filter and map in one iteration.
Let us suppose you have a collection of employee records. Assume you have to get the…
Enumerable#tally
ruby-2.7 has introduced ‘tally’ which returns a hash where the keys are elements and values are the count of occurrence
Ruby 2.7.0-preview1 has been released on 30 May 2019. This blog explains how to setup ruby-2.7.0 on your system using rbenv.
Values in JavaScript are of two types: Primitives & Objects. Yeah you read it correctly, not everything in JavaScript is an Object.
What are primitives?The following values are primitives* Strings: "abc"* Numbers: 1, 2, 3.57 (All numbers…
"abc"
Most of the things we create in javascript is an object including arrays, functions. Even the primitives(string, number, null, undefined, boolean) which exists have wrapper around them, thats the reason we can call functions on…