Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Merge requests
!86
fix misleading code comments
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix misleading code comments
mlong/jsondb
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Kayz
requested to merge
mlong/jsondb
into
master
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5b38c28d
1 commit,
4 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
exec/load/json-db.js
+
3
−
3
Options
@@ -291,7 +291,7 @@ function JSONdb (fileName, scope) {
}
}
/* shift a record off the
end
of an array */
/* shift a record off the
beginning
of an array */
this
.
shift
=
function
(
request
,
record
)
{
var
client
=
request
.
client
;
/* if the requested data does not exist, result is undefined */
@@ -374,7 +374,7 @@ function JSONdb (fileName, scope) {
}
}
/* push a record onto the
end
of an array */
/* push a record onto the
beginning
of an array */
this
.
unshift
=
function
(
request
,
record
)
{
var
client
=
request
.
client
;
var
data
=
request
.
data
;
@@ -402,7 +402,7 @@ function JSONdb (fileName, scope) {
}
}
/* s
hift a record
of
f
the end of an
array */
/* s
lice portion
of
array into new
array */
this
.
slice
=
function
(
request
,
record
)
{
var
client
=
request
.
client
;
/* if the requested data does not exist, result is undefined */
Loading