Skip to content
Snippets Groups Projects
Commit 9fb98c8b authored by Kayz's avatar Kayz
Browse files

it's all lies

parent 3ad2317e
Branches
Tags
No related merge requests found
...@@ -291,7 +291,7 @@ function JSONdb (fileName, scope) { ...@@ -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) { this.shift = function(request,record) {
var client = request.client; var client = request.client;
/* if the requested data does not exist, result is undefined */ /* if the requested data does not exist, result is undefined */
...@@ -374,7 +374,7 @@ function JSONdb (fileName, scope) { ...@@ -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) { this.unshift = function(request,record) {
var client = request.client; var client = request.client;
var data = request.data; var data = request.data;
...@@ -402,7 +402,7 @@ function JSONdb (fileName, scope) { ...@@ -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) { this.slice = function(request,record) {
var client = request.client; var client = request.client;
/* if the requested data does not exist, result is undefined */ /* 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.
Please register or to comment