Helene  Ward

Helene Ward

1626798360

Javascript Array Methods Explained with Manoj Singh Negi ( Recraft Relic )

Javascript Array Methods Explained Filter, Foreach, Map, Sort, Find, FindIndex

Recraft Relic website - https://recraftrelic.com/

#javascript #javascript array #recraft relic

What is GEEK

Buddha Community

Javascript Array Methods Explained with Manoj Singh Negi ( Recraft Relic )
Helene  Ward

Helene Ward

1626798360

Javascript Array Methods Explained with Manoj Singh Negi ( Recraft Relic )

Javascript Array Methods Explained Filter, Foreach, Map, Sort, Find, FindIndex

Recraft Relic website - https://recraftrelic.com/

#javascript #javascript array #recraft relic

Terry  Tremblay

Terry Tremblay

1602154740

Fill and Filter in Array in JavaScript

By the word Array methods, I mean the inbuilt array functions, which might be helpful for us in so many ways. So why not just explore and make use of them, to boost our productivity.

Let’s see them together one by one with some amazing examples.

Array.fill():

The _fill()_ method changes all elements in an array to a static value, from a start index (default _0_) to an end index (default _array.length_). It returns the modified array.

In simple words, it’s gonna fill the elements of the array with whatever sets of params, you pass in it. Mostly we pass three params, each param stands with some meaning. The first param value: what value you want to fill, second value: start range of index(inclusive), and third value: end range of index(exclusive). Imagine you are going to apply this method on some date, so that how its gonna look like eg: array.fill(‘Some date’, start date, end date).

NOTE: Start range is inclusive and end range is exclusive.

Let’s understand this in the below example-

//declare array
var testArray = [2,4,6,8,10,12,14];

console.log(testArray.fill("A"));

When you run this code, you gonna see all the elements of testArray will be replaced by 'A' like [“A”,"A","A","A","A","A","A"].

#javascript-tips #array-methods #javascript-development #javascript #arrays

Helene  Ward

Helene Ward

1626820500

Building A Currency Converter in React Native - Manoj Singh Negi - Recraft Relic

Building a currency converter in React Native by Manoj Singh Negi.

Github repo - https://github.com/manojsinghnegiwd/react-native-currency-converter

#recraft relic #react #react native #manoj singh negi

Helene  Ward

Helene Ward

1626831540

Building A Note Taking App in React Native - Manoj Singh Negi - Recraft Relic

Building a note taking app in React Native

React Native

More React Native Coding Sessions

#recraft relic #react #react native #manoj singh negi

Helene  Ward

Helene Ward

1626827880

Building an Image Gallery app in React Native - Manoj Singh Negi - Recraft Relic

Building an Image Gallery app in React Native.

React Native

Modules used

Issues I ran into

  • fbjs not installed - just install fbjs using npm install --save fbjs or yarn add fbjs

Recraft Relic website - https://recraftrelic.com/

#react #react native #recraft relic #manoj singh negi