Creating your own vanilla JS helper library like Lodash and Underscore.js
https://gomakethings.com/creating-your-own-vanilla-js-helper-library-like-lodash-and-underscore.js/
var _ = (function () {
'use strict';
// Create the methods object
var methods = {};
methods.get = function () {
console.log('get');
};
// Expose the public methods
return methods;
})();
_.get();
//----------------------
Lodash 대체 pure javascript (vanilla, plain)
* Lodash
* you-dont-need /You-Dont-Need-Lodash-Underscore
https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
collection( array, object)에서는 Lodash 인정
* YOU MIGHT NOT NEED LODASH
https://youmightnotneed.com/lodash/
반응형
'Code > JavaScript' 카테고리의 다른 글
[JavaScript] TypeScript 사용법 (0) | 2020.06.26 |
---|---|
[Javascript] 함수형 프로그래밍 (0) | 2020.04.05 |
[Javascript] 배열, 객체 Deep Copy (0) | 2020.04.04 |
[Javascript] call(), apply(), bind() 차이 (0) | 2020.04.03 |
[Javascript] 전개 구문(Spread syntax , spread operator) (...) (0) | 2020.02.27 |