Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Set objects Relation with Strings javascript

let text = 'India'

const mySet = new Set(text)  // Set(5) {'I', 'n', 'd', 'i', 'a'}
mySet.size  // 5

//case sensitive & duplicate omission
new Set("Firefox")  // Set(7) { "F", "i", "r", "e", "f", "o", "x" }
new Set("firefox")  // Set(6) { "f", "i", "r", "e", "o", "x" }
Comment

PREVIOUS NEXT
Code Example
Javascript :: How to make a json call to a URL 
Javascript :: how to store data in cookie in javascript 
Javascript :: cypress replace response part 
Javascript :: npx create-next-app permission denied 
Javascript :: nuxt js index.html not found 
Javascript :: java script discord timer 
Javascript :: include nested childs 
Javascript :: what is the opposite of lazy initialization 
Javascript :: delete head array js 
Javascript :: nuxtjs install sassloader 
Javascript :: Keyframe Overshoot 
Javascript :: a method that will do something to each of the values in the array 
Javascript :: "json" is not defined 
Javascript :: send data to javscript 
Javascript :: JAVASCRIPT EX. 
Javascript :: Convert form data to JavaScript object with jQuery 
Javascript :: _.has Creator Functions Do Not Have "Constructor" 
Javascript :: react with two components render empty 
Javascript :: prisma single data fetch 
Javascript :: class parent and class child 
Javascript :: invalid json text mysql 
Javascript :: Html() is a JQuery Function 
Javascript :: say something in console javascript 
Javascript :: List content on thee currentwdr 
Javascript :: port for sqlexpress not found in desktop node.js 
Javascript :: React clock via props 
Javascript :: javascript splice method 
Javascript :: angularfire 
Javascript :: react word cload 
Javascript :: Maxscript Bitarray 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =