Skip to content
Snippets Groups Projects
Commit 4e63ed26 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'mlong/jsondb' into 'master'

fix misleading code comments

See merge request !86
parents 24a9a7d9 5b38c28d
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!86fix misleading code comments
......@@ -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) {
}
}
/* shift a record off the end of an array */
/* slice 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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment