mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Add _.runInContext usage example to _.mixin docs. [ci skip]
This commit is contained in:
@@ -10302,6 +10302,9 @@
|
|||||||
* });
|
* });
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
|
* // use `_.runInContext` to avoid potential conflicts (esp. in Node.js)
|
||||||
|
* var _ = require('lodash').runInContext();
|
||||||
|
*
|
||||||
* _.mixin({ 'vowels': vowels });
|
* _.mixin({ 'vowels': vowels });
|
||||||
* _.vowels('fred');
|
* _.vowels('fred');
|
||||||
* // => ['e']
|
* // => ['e']
|
||||||
|
|||||||
Reference in New Issue
Block a user