Can someone please show me how to access lodash.js...
# suitescript
j
Can someone please show me how to access lodash.js in a client script? I have put in my suitescrips folder in the file cabinet. I have tried a few variations to define it (such as below), but keep getting errors when i upload the file.
Copy code
define(['N/file', 'N/record', 'N/search', 'N/ui/serverWidget','./lodash.js'],
function(file, record, search, serverWidget) {
or
Copy code
define(['N/file', 'N/record', 'N/search', 'N/ui/serverWidget','./lodash.js'],
function(file, record, search, serverWidget, _) {