Skip to content

Instantly share code, notes, and snippets.

Carbide Public carbide-public

Block or report user

Report or block carbide-public

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cell0.js
const arr = [];
const arrCopy = arr;
arr === arrCopy
arr.push(1)
arr === arrCopy
View cell0.js
console.log("Hello world!");
let b = 9443;
let c = b+5;
View cell0.js
var jqueryForm = function(val) {
return val || "";
}
var objError = {
"message":"The given data was invalid.",
"errors": {
"name": ["The name field is required."],
"number": ["The number field is required."]
}
View cell0.js
var baseFunc = (function(input) {
var trunc = function(input, wordLength) {
if (input.length > wordLength)
return input.substring(0,wordLength) + '...';
else
return input;
}
return {
truncate: function(input, wordLength) {
You can’t perform that action at this time.