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

https://lodash.com/docs/

 


* 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/

 

반응형
Posted by codens