Module

x/lodash_es/src/mixin.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/mixin.js";

Adds all own enumerable string keyed function properties of a source object to the destination object. If object is a function, then methods are added to its prototype as well.

Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying the original.

Examples

function vowels(string) { return _.filter(string, function(v) { return /[aeiou]/i.test(v); }); }

_.mixin({ 'vowels': vowels }); _.vowels('fred'); // => ['e']

_('fred').vowels().value(); // => ['e']

_.mixin({ 'vowels': vowels }, { 'chain': false }); _('fred').vowels(); // => ['e']

Parameters

object

The object of functions to add.

source
options