Skip to content

Instantly share code, notes, and snippets.

@jtslear
Created November 4, 2016 12:38
Show Gist options
  • Save jtslear/4347099f7c48550b43fb3efdef2271eb to your computer and use it in GitHub Desktop.
Save jtslear/4347099f7c48550b43fb3efdef2271eb to your computer and use it in GitHub Desktop.
AWS Lambda Memory Behavior
'use strict';
var arrayA = [];
var arrayB = [];
module.exports.test = (event, context, callback) => {
var arrayC = [];
var arrayD = [];
arrayA.push("A");
arrayB.push("B");
arrayC.push("C");
arrayD.push("D");
console.log("Array A:", arrayA);
console.log("Array B:", arrayB);
console.log("Array C:", arrayC);
console.log("Array D:", arrayD);
arrayA = [];
arrayC = [];
callback(null);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment