Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5b19bf4
Enable security scanning with GitHub CodeQL
jgonggrijp Dec 20, 2021
84b8278
Prevent CodeQL from scanning irrelevant files
jgonggrijp Dec 20, 2021
790f423
Work around GitHub Actions YAML limitation
jgonggrijp Dec 20, 2021
f6621f3
Move CodeQL config to a better place and fix reference
jgonggrijp Dec 20, 2021
334993a
Reference CodeQL config in init instead of analysis step
jgonggrijp Dec 20, 2021
99a9a29
Remove duplicate with
jgonggrijp Dec 20, 2021
58df108
Include test code in security scans
jgonggrijp Dec 20, 2021
596a7f2
Prevent potential problems from a future colors@>1.4.0 upgrade
jgonggrijp Mar 19, 2022
dcec4d2
Remove unneeded Xvfb from Travis config
Krinkle Apr 3, 2022
7312895
Test: Use same QUnit version in CI as on website
Krinkle Apr 3, 2022
f12551c
Merge pull request #2950 from Krinkle/xvfb
jgonggrijp Apr 4, 2022
0557e33
Merge pull request #2951 from Krinkle/same-version
jgonggrijp Apr 4, 2022
825e9c2
Parenthesize mixed expressions of || and && (fix #2949)
jgonggrijp Apr 4, 2022
ad93ed5
Enforce parenthesization of && and || with a linter rule (#2949)
jgonggrijp Apr 23, 2022
c4e0920
Parenthesize remaining mixed expressions of && and || (#2949)
jgonggrijp Apr 23, 2022
a3c2c66
Merge pull request #2953 from jgonggrijp/extendscript-precedence
jgonggrijp Apr 23, 2022
aca966a
Prevent test-node from running twice in CI on Node.js 14
jgonggrijp Apr 23, 2022
2bd4e79
Waste even fewer CPU cycles in CI
jgonggrijp Apr 23, 2022
b112c23
Add a comment to the modules/.eslintrc (post-merge review comment #2953)
jgonggrijp Apr 23, 2022
fd6f7a3
Bump the version to 1.13.3
jgonggrijp Apr 23, 2022
1022ab3
Update the LICENSE date
jgonggrijp Apr 23, 2022
0a531f1
Add a change log entry for 1.13.3
jgonggrijp Apr 23, 2022
0062d3c
Merge branch 'prepare-1.13.3'
jgonggrijp Apr 23, 2022
e7e719e
Update generated files, tag 1.13.3 release
jgonggrijp Apr 23, 2022
c7ce0d7
Expand git.io URLs in codeql-analysis workflow (fix #2957)
jgonggrijp Apr 28, 2022
6ce24a2
add fsck error workaround to contributing.md #2887
zackschuster Dec 23, 2021
5af5ecb
update contributing to clarify how to clone from other sources
zackschuster Apr 29, 2022
adf8838
fix heading nesting
zackschuster Apr 29, 2022
da06656
Merge pull request #2956 from zackschuster/patch-1
jgonggrijp Apr 29, 2022
46d77d3
Fix for webpack module federation "No version" error
petschki May 23, 2022
75d257f
Merge pull request #2959 from petschki/module-federation-version
jgonggrijp May 23, 2022
cf6ed6f
Bump the version to 1.13.4
jgonggrijp Jun 2, 2022
fcb149d
Add a change log entry for 1.13.4
jgonggrijp Jun 2, 2022
979dfc4
Merge branch 'prepare-1.13.4'
jgonggrijp Jun 2, 2022
a15d1af
Update generated files, tag 1.13.4 release
jgonggrijp Jun 2, 2022
ea95e52
Upgrade karma{,-sauce-launcher} devDeps, lockfile as side effect
jgonggrijp Sep 15, 2022
cb353dd
Upgrade karma-qunit
jgonggrijp Sep 15, 2022
78daa14
Run npm audit fix
jgonggrijp Sep 15, 2022
c444277
Upgrade nyc and coveralls to latest
jgonggrijp Sep 15, 2022
f238610
Test LTS Node.js versions in CI
jgonggrijp Sep 15, 2022
6d93d6f
Reorganize test scripts to avoid rollup config coverage report
jgonggrijp Sep 15, 2022
7459b8d
Merge pull request #2965 from jgonggrijp/upgrade-sauce
jgonggrijp Sep 15, 2022
89b32a6
Add a module entry to the require exports condition
jgonggrijp Sep 23, 2022
c47566a
Bump the version to 1.13.5
jgonggrijp Sep 23, 2022
bef7ee3
Add a change log entry for 1.13.5
jgonggrijp Sep 23, 2022
5ac6628
Merge pull request #2966 from jgonggrijp/prepare-1.13.5
jgonggrijp Sep 23, 2022
08cb140
Work around docco build problem using patch-package
jgonggrijp Sep 23, 2022
68e5eb6
Update generated sources, tag 1.13.5 release
jgonggrijp Sep 23, 2022
66ee70d
Verify that production and doc builds still work in CI
jgonggrijp Sep 23, 2022
2edcdc1
Hostfix for broken builds
paulsmithkc Sep 23, 2022
4eb6894
Merge pull request #2974 from paulsmithkc/patch-1
jashkenas Sep 23, 2022
1c1d1a2
Remove patch-package postinstall script
jgonggrijp Sep 23, 2022
43e827a
Bump the version to 1.13.6 (hotfix)
jgonggrijp Sep 23, 2022
e8f86fb
Add changelog entry for versioin 1.13.6
jgonggrijp Sep 23, 2022
732cafe
Underscore 1.13.6
Sep 23, 2022
2e7c0f2
Update generated files, tag 1.13.6 release
jgonggrijp Sep 23, 2022
bd2d35c
Merge remote-tracking branch 'upstream/master'
jgonggrijp Sep 23, 2022
60835dc
Run patch-package when building the docs
jgonggrijp Sep 23, 2022
af7c386
Add source links to all functions in documentation (close #2976)
jgonggrijp Nov 13, 2022
7860d11
Add a github entry to the FUNDING.yml
jgonggrijp Nov 23, 2022
383d9fa
fix(range): step documentation
stevenh Nov 28, 2022
d122213
Merge pull request #2978 from stevenh/fix/range-step-docs
jgonggrijp Nov 29, 2022
fcc3b61
Add nativeDataView check to isDataView
colingm Aug 23, 2023
dbb5475
Add in tests for non-native dataview
colingm Aug 30, 2023
0bd9b48
Merge pull request #2986 from colingm/native-data-view
jgonggrijp Sep 27, 2023
7974498
Bump GitHub workflow actions to latest versions
deining Mar 5, 2024
e7c1642
Fix typos
deining Mar 5, 2024
1abc36c
Merge pull request #2991 from deining/bump-github-workflow-actions
jgonggrijp Mar 5, 2024
8b3a913
feature/theme-toggle
elkcityhazard Jul 23, 2024
75540e3
removed extra console log
elkcityhazard Jul 23, 2024
6505d53
minor refactor to work on firefox, moving files arond
elkcityhazard Jul 23, 2024
ed42966
fail if no toggle
elkcityhazard Jul 23, 2024
de20b6f
incorporated stylesheet that was already available
elkcityhazard Jul 23, 2024
55720c0
minimal dark mode implementation
elkcityhazard Jul 23, 2024
184aae5
unncessary prefers-color-scheme: light removal
elkcityhazard Jul 23, 2024
dd23fd0
formatting, filter, darker darkmode
elkcityhazard Jul 24, 2024
bd3468b
even more css formatting
elkcityhazard Jul 24, 2024
1205eb5
Merge pull request #2996 from elkcityhazard/feature/theme-toggle
jgonggrijp Jul 24, 2024
a1cbb48
Bump the version to 1.13.7
jgonggrijp Jul 24, 2024
473970a
Bump the copyright years
jgonggrijp Jul 24, 2024
b1d4f23
Add a change log entry for 1.13.7
jgonggrijp Jul 24, 2024
d2e7e61
Update autogenerated files for 1.13.7
jgonggrijp Jul 24, 2024
f2c22dd
Added _.VERSION to the documentation notes section
Aurimas-stack Oct 15, 2024
918bb15
Moved version to utility, added version to table of contents, changed…
Aurimas-stack Oct 16, 2024
0d820ef
Merge pull request #2998 from Aurimas-stack/update-docs-version
jgonggrijp Oct 16, 2024
6127441
docs: replace 'ticket' with 'issue' in contributing guidelines
Chanakyasinde Jan 27, 2026
84692aa
docs: fix article usage for 'issue'
Chanakyasinde Jan 28, 2026
f8db7b9
Merge pull request #3009 from Chanakyasinde/docs
jgonggrijp Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tidelift: "npm/underscore"
patreon: juliangonggrijp
github: [jgonggrijp]
6 changes: 6 additions & 0 deletions .github/config/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
- 'modules/**'
- 'test/**'
- 'test-treeshake/**'
- 'rollup*.js'
- 'index.html'
78 changes: 78 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- 'modules/**'
- 'test/**'
- 'test-treeshake/**'
- 'rollup*.js'
- 'index.html'
schedule:
- cron: '16 8 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at
# https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
config-file: ./.github/config/codeql.yml

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
language: node_js
services:
- xvfb
sudo: false
jobs:
include:
- node_js: 8
env:
- DOWNGRADE=true
- EXTRA=false
- node_js: 10
- node_js: 12
env:
- DOWNGRADE=false
- EXTRA=false
- node_js: 14
- node_js: 16
env:
- DOWNGRADE=false
- EXTRA=true
before_install:
- npm install -g karma-cli
- "[ $EXTRA = false ] || npm install -g karma-cli"
before_script:
- npm install karma-sauce-launcher
- "[ $EXTRA = false ] || npm install karma-sauce-launcher"
- "[ $DOWNGRADE = false ] || npm install rollup@1"
script:
- npm test
- "[ $EXTRA = false ] || npm run lint"
- npm run prepare-tests
- "[ $EXTRA = false ] || npm run build-umd"
- "[ $EXTRA = false ] || npm run build-esm"
- "[ $EXTRA = false ] || npm run doc"
- "[ $EXTRA = true ] || npm run test-node"
- "[ $EXTRA = false ] || npm run coveralls"
- "[ $EXTRA = false ] || npm run test-browser"
- "[ $EXTRA = false ] || karma start karma.conf-sauce.js"
- "[ $EXTRA = false ] || npm run coveralls"
notifications:
email: false
env:
Expand Down
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

* This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.

* Please do not open a ticket to report a security issue. Consult the [security policy](SECURITY.md) on what to do instead.
* Please do not open an issue to report a security issue. Consult the [security policy](SECURITY.md) on what to do instead.

* Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.
* Before you open an issue or send a pull request, [search](https://github.com/jashkenas/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.

* If you're proposing a new feature, make sure it isn't already implemented in [Underscore-Contrib](https://github.com/documentcloud/underscore-contrib).

Expand All @@ -15,3 +15,6 @@
* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/underscore/blob/master/modules/index.js).

* In your pull request, do not add documentation or re-build the minified `underscore-umd-min.js` file. We'll do those things before cutting a new release.

### "Help, cloning fails with `fatal: fsck error in packed object`"
This error is caused by zero-padded file modes in the commit history. As fixing this is highly destructive, we suggest ignoring these warnings. The simplest way is to instruct git to do so when cloning. For example, to clone from `jashkenas/underscore`, run the following command: `git clone --config transfer.fsckobjects=false git@github.com:jashkenas/underscore.git`. If cloning from a different user or organization, replace `jashkenas` with their name in the previous command.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
Copyright (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
22 changes: 11 additions & 11 deletions docs/modules/_baseCreate.html
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ <h1>_baseCreate.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> isObject <span class="hljs-keyword">from</span> <span class="hljs-string">'./isObject.js'</span>;
<span class="hljs-keyword">import</span> { nativeCreate } <span class="hljs-keyword">from</span> <span class="hljs-string">'./_setup.js'</span>;</pre></div></div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> isObject <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isObject.js&#x27;</span>;
<span class="hljs-keyword">import</span> { nativeCreate } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_setup.js&#x27;</span>;</pre></div></div>

</li>

Expand All @@ -865,8 +865,8 @@ <h1>_baseCreate.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">ctor</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{};
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">function</span> <span class="hljs-title function_">ctor</span>(<span class="hljs-params"></span>) {
<span class="hljs-keyword">return</span> <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>){};
}</pre></div></div>

</li>
Expand All @@ -882,13 +882,13 @@ <h1>_baseCreate.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">baseCreate</span>(<span class="hljs-params">prototype</span>) </span>{
<span class="hljs-keyword">if</span> (!isObject(prototype)) <span class="hljs-keyword">return</span> {};
<span class="hljs-keyword">if</span> (nativeCreate) <span class="hljs-keyword">return</span> nativeCreate(prototype);
<span class="hljs-keyword">var</span> Ctor = ctor();
Ctor.prototype = prototype;
<span class="hljs-keyword">var</span> result = <span class="hljs-keyword">new</span> Ctor;
Ctor.prototype = <span class="hljs-literal">null</span>;
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">baseCreate</span>(<span class="hljs-params">prototype</span>) {
<span class="hljs-keyword">if</span> (!<span class="hljs-title function_">isObject</span>(prototype)) <span class="hljs-keyword">return</span> {};
<span class="hljs-keyword">if</span> (nativeCreate) <span class="hljs-keyword">return</span> <span class="hljs-title function_">nativeCreate</span>(prototype);
<span class="hljs-keyword">var</span> <span class="hljs-title class_">Ctor</span> = <span class="hljs-title function_">ctor</span>();
<span class="hljs-title class_">Ctor</span>.<span class="hljs-property"><span class="hljs-keyword">prototype</span></span> = prototype;
<span class="hljs-keyword">var</span> result = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Ctor</span>;
<span class="hljs-title class_">Ctor</span>.<span class="hljs-property"><span class="hljs-keyword">prototype</span></span> = <span class="hljs-literal">null</span>;
<span class="hljs-keyword">return</span> result;
}</pre></div></div>

Expand Down
22 changes: 11 additions & 11 deletions docs/modules/_baseIteratee.html
Original file line number Diff line number Diff line change
Expand Up @@ -849,13 +849,13 @@ <h1>_baseIteratee.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> identity <span class="hljs-keyword">from</span> <span class="hljs-string">'./identity.js'</span>;
<span class="hljs-keyword">import</span> isFunction <span class="hljs-keyword">from</span> <span class="hljs-string">'./isFunction.js'</span>;
<span class="hljs-keyword">import</span> isObject <span class="hljs-keyword">from</span> <span class="hljs-string">'./isObject.js'</span>;
<span class="hljs-keyword">import</span> isArray <span class="hljs-keyword">from</span> <span class="hljs-string">'./isArray.js'</span>;
<span class="hljs-keyword">import</span> matcher <span class="hljs-keyword">from</span> <span class="hljs-string">'./matcher.js'</span>;
<span class="hljs-keyword">import</span> property <span class="hljs-keyword">from</span> <span class="hljs-string">'./property.js'</span>;
<span class="hljs-keyword">import</span> optimizeCb <span class="hljs-keyword">from</span> <span class="hljs-string">'./_optimizeCb.js'</span>;</pre></div></div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> identity <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./identity.js&#x27;</span>;
<span class="hljs-keyword">import</span> isFunction <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isFunction.js&#x27;</span>;
<span class="hljs-keyword">import</span> isObject <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isObject.js&#x27;</span>;
<span class="hljs-keyword">import</span> isArray <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isArray.js&#x27;</span>;
<span class="hljs-keyword">import</span> matcher <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./matcher.js&#x27;</span>;
<span class="hljs-keyword">import</span> property <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./property.js&#x27;</span>;
<span class="hljs-keyword">import</span> optimizeCb <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_optimizeCb.js&#x27;</span>;</pre></div></div>

</li>

Expand All @@ -872,11 +872,11 @@ <h1>_baseIteratee.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">baseIteratee</span>(<span class="hljs-params">value, context, argCount</span>) </span>{
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">baseIteratee</span>(<span class="hljs-params">value, context, argCount</span>) {
<span class="hljs-keyword">if</span> (value == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> identity;
<span class="hljs-keyword">if</span> (isFunction(value)) <span class="hljs-keyword">return</span> optimizeCb(value, context, argCount);
<span class="hljs-keyword">if</span> (isObject(value) &amp;&amp; !isArray(value)) <span class="hljs-keyword">return</span> matcher(value);
<span class="hljs-keyword">return</span> property(value);
<span class="hljs-keyword">if</span> (<span class="hljs-title function_">isFunction</span>(value)) <span class="hljs-keyword">return</span> <span class="hljs-title function_">optimizeCb</span>(value, context, argCount);
<span class="hljs-keyword">if</span> (<span class="hljs-title function_">isObject</span>(value) &amp;&amp; !<span class="hljs-title function_">isArray</span>(value)) <span class="hljs-keyword">return</span> <span class="hljs-title function_">matcher</span>(value);
<span class="hljs-keyword">return</span> <span class="hljs-title function_">property</span>(value);
}</pre></div></div>

</li>
Expand Down
12 changes: 6 additions & 6 deletions docs/modules/_cb.html
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,9 @@ <h1>_cb.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> _ <span class="hljs-keyword">from</span> <span class="hljs-string">'./underscore.js'</span>;
<span class="hljs-keyword">import</span> baseIteratee <span class="hljs-keyword">from</span> <span class="hljs-string">'./_baseIteratee.js'</span>;
<span class="hljs-keyword">import</span> iteratee <span class="hljs-keyword">from</span> <span class="hljs-string">'./iteratee.js'</span>;</pre></div></div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> _ <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./underscore.js&#x27;</span>;
<span class="hljs-keyword">import</span> baseIteratee <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_baseIteratee.js&#x27;</span>;
<span class="hljs-keyword">import</span> iteratee <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./iteratee.js&#x27;</span>;</pre></div></div>

</li>

Expand All @@ -867,9 +867,9 @@ <h1>_cb.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">cb</span>(<span class="hljs-params">value, context, argCount</span>) </span>{
<span class="hljs-keyword">if</span> (_.iteratee !== iteratee) <span class="hljs-keyword">return</span> _.iteratee(value, context);
<span class="hljs-keyword">return</span> baseIteratee(value, context, argCount);
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">cb</span>(<span class="hljs-params">value, context, argCount</span>) {
<span class="hljs-keyword">if</span> (_.<span class="hljs-property">iteratee</span> !== iteratee) <span class="hljs-keyword">return</span> _.<span class="hljs-title function_">iteratee</span>(value, context);
<span class="hljs-keyword">return</span> <span class="hljs-title function_">baseIteratee</span>(value, context, argCount);
}</pre></div></div>

</li>
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/_chainResult.html
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ <h1>_chainResult.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> _ <span class="hljs-keyword">from</span> <span class="hljs-string">'./underscore.js'</span>;</pre></div></div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> _ <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./underscore.js&#x27;</span>;</pre></div></div>

</li>

Expand All @@ -864,8 +864,8 @@ <h1>_chainResult.js</h1>

</div>

<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">chainResult</span>(<span class="hljs-params">instance, obj</span>) </span>{
<span class="hljs-keyword">return</span> instance._chain ? _(obj).chain() : obj;
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">chainResult</span>(<span class="hljs-params">instance, obj</span>) {
<span class="hljs-keyword">return</span> instance.<span class="hljs-property">_chain</span> ? <span class="hljs-title function_">_</span>(obj).<span class="hljs-title function_">chain</span>() : obj;
}</pre></div></div>

</li>
Expand Down
Loading