Search

Nalezeno "method": 191

JavaScript Glossary: String trim()


Basics This method removes whitespaces from the start and end of the calling string. It removes spaces, tabs, no break spaces etc. It returns a new string stripped of whitespaces from both

JavaScript Glossary: String indexOf()


Basics This method checks for the first appearance of a provided string argument within the calling string and returns the index. It returns -1 if the string argument can’t be

JavaScript Glossary: String includes()


Basics The includes method checks a provided string against the calling String object, it returns true if the calling String object contains the provided string a

JavaScript Glossary: String concat()


Basics This method is used to join the calling string and the provided string arguments. It returns a new String object containing the calling string and the provided arguments . If no arg

JavaScript Glossary: Array unshift() Method


Basics The unshift array method appends a number of values to the start of a given array. It then returns the new length of the array. This method can take a number of argumen

Where Do You Nest Your Sass Breakpoints?


I love nesting my @media query breakpoints. It's perhaps the most important feature of Sass to me. Maybe I pick a method and do it like this: .element { display: grid; grid-template-columns: 100px 1fr; @include breakpoint(baby-bear) { display: block; } } That's straightforward enough....

JavaScript Glossary: Array .splice() Method


Basics The splice array method changes an existing array by removing, adding and/or replacing specified elements from it. The method mutates the array and returns an array of

JavaScript Glossary: Array .slice() Method


Basics The slice array method copies a given part of an array returning the selected part as an array. It doesn’t mutate the given array rather, it returns a new array

JavaScript Glossary: Array .reverse() Method


Basics This method changes the position of elements within the array. The first element goes to the last position and the last element goes to the first position. The method returns the re

JavaScript Glossary: Array .map() Method


Basics The map() method takes a callback method that performs an operation on the elements in the array. It returns a new array containing the resulting values of running the

JavaScript Glossary: Array.some()


Basics This method checks if any of the elements contained in an array passes a set test. If at least one of the elements passes this test, true is returned. This method only

JavaScript Glossary: Array .every() Method


Basics The every method checks that each element in an array passes a set test. This method will return true if all the elements pass the set. Once an element tha

Table design patterns on the web


Chen Hui Jing has tackled a ton of design patterns for tables that might come in handy when creating tables that are easy to read and responsive for the web: There are a myriad of table design patterns out there, and which approach you pick depends heavily on the type of data you have and...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace