CODE_PLAN
분류 전체보기
(336)
Front-End
(110)
JavaScript
(26)
React
(78)
TypeScript
(6)
HTML, CSS
(1)
코딩테스트
(42)
JavaScript
(41)
vscode
(5)
개발 지식
(11)
Github
(3)
IT 서비스 기획, PM, PO
(7)
Figma
(5)
Office
(1)
ppt
(1)
홈
태그
방명록
/
/
블로그 내 검색
자바스크립트 object -> string 변환법
CODE_PLAN
2022. 8. 31. 14:16
2022. 8. 31. 14:16
let
input
=
fs
.
readFileSync
(
filePath
).
toString
().
split
(
'
\n
'
);
console
.
log
(
typeof
input
)
// typeof input => object
input
=
input
[
0
];
// -> object => string
console
.
log
(
typeof
input
) //typeof input => string
공유하기
게시글 관리
CODE_PLAN
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바