Code/JavaScript
[Javascript] Lodash 같은 라이브러리 만들기
codens
2020. 4. 4. 16:36
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/
반응형