promotional bannermobile promotional banner
premium banner
Lodash lib for WOW

Description

This is a Library to use in other addons not an standalone addon.

LibLodash

This is a Libstub wrapper around https://github.com/flowyroll/lodash.lua

:Get([method])

Returns
The table instance of the lodash library

Arguments
method 
(Optional) Return only the one method of the library

Example

local lodash = LibStub("LibLodash"):Get()

print(lodash.map({1, 2, 3, 4, 5, 6, 7, 8, 9}, function(n)
     return n * n
end))
local map = LibStub("LibLodash"):Get("map")

print(map({1, 2, 3, 4, 5, 6, 7, 8, 9}, function(n)
     return n * n
end))

 

Follow the API documentation for the complete list.