SyntaxFix
Write A Post
Hire A Developer
Questions
The correct one-liner for both Underscore.js and Lodash is:
var ip = require('underscore') .chain(require('os').networkInterfaces()) .values() .flatten() .find({family: 'IPv4', internal: false}) .value() .address;