일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- bitcoin
- 기준
- concept
- solidity
- blockchain
- middleware
- REACT
- nextJS
- CSS
- hardhat
- Props
- Interface
- Ethereum
- node.js
- API
- built in object
- JavaScript
- typeScript
- web
- evm
- 삶
- SSR
- CLASS
- graphQL
- error
- Redux
- useState
- HTML
- tailwindcss
- express.js
- Today
- Total
목록array (4)
ReasonJun
// SPDX-License-Identifier: MIT pragma solidity >= 0.7.0 < 0.9.0; contract Array { uint[] public arr; uint[] public arr2 = [1, 2, 3]; uint[10] public myFixedSizeArr; // 0 function get(uint i) public view returns (uint) { return arr[i]; } function get() public view returns (uint[] memory) { return arr; } function push(uint i) public { arr.push(i); } function pop() public { arr.pop(); } function g..
reference : https://kentcdodds.com/blog/wrapping-react-use-state-with-type-script Wrapping React.useState with TypeScript Stay up to date Subscribe to the newsletter to stay up to date with articles, courses and much more! Learn more Stay up to date Subscribe to the newsletter to stay up to date with articles, courses and much more! Learn more All rights reserved © Kent C. D kentcdodds.com
show data //? .length // Returns the length (number) of an array. const arr = ['a', 'b', 'c']; console.log(arr.length); // 3 //? .at() // Index the target array. console.log(arr[0]); // a console.log(arr.at(0)); // a console.log(arr.at(-1)); // c //? .find() // Returns the first element in the target array that passes the callback test. const arr = [5, 8, 130, 12, 44]; const foundItem = arr.find..
array const fruits = new Array('apple', 'banana', 'cherry'); console.log(fruits); // [ 'apple', 'banana', 'cherry' ] const fruits1 = ['apple', 'banana', 'cherry']; console.log(fruits1); // [ 'apple', 'banana', 'cherry' ] console.log(fruits[0]); // apple // 'from' has the iterable property, so it iterates. array = Array.from('text'); // copy console.log(array); // [ 't', 'e', 'x', 't' ] array = A..