Sha256: e2de0581d1598fe20927a872cb686b01ba198191f19075a9b8b709bf3a076dcf
Contents?: true
Size: 563 Bytes
Versions: 16
Compression:
Stored size: 563 Bytes
Contents
// Underscore-contrib (underscore.util.existential.js 0.3.0) // (c) 2013 Michael Fogus, DocumentCloud and Investigative Reporters & Editors // Underscore-contrib may be freely distributed under the MIT license. _.mixin({ exists: function(x) { return x != null; }, truthy: function(x) { return (x !== false) && _.exists(x); }, falsey: function(x) { return !_.truthy(x); }, not: function(b) { return !b; }, firstExisting: function() { for (var i = 0; i < arguments.length; i++) { if (arguments[i] != null) return arguments[i]; } } });
Version data entries
16 entries across 16 versions & 1 rubygems