A Pen by Suman Paul on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Object Properties | |
Object.length; //returns 1 | |
Object.prototype; //returns {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = { | |
firstName: 'Suman', | |
lastName: 'Paul', | |
age: 30 | |
}; | |
Object.keys(user); | |
//returns ["firstName", "lastName", "age"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = { | |
firstName: 'Suman', | |
lastName: 'Paul', | |
age: 30 | |
}; | |
Object.defineProperty(user, 'gender', { | |
enumerable: false, | |
value: 'male' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = [1,2,3]; | |
Object.keys(a); | |
//returns ["0", "1", "2"] | |
Object.getOwnPropertyNames(a) | |
//returns ["0", "1", "2", "length"] | |
a.propertyIsEnumerable(0); // returns true | |
a.propertyIsEnumerable('length'); // returns false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = {}; | |
Object.defineProperty(user, 'age', { | |
enumerable: false, // will make age not appear in Object.keys(user) | |
configurable: false, // prevent deletion/ modification of the property and its value | |
writable: false, // will prevent changing of the property value | |
value: 30 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bower_components | |
node_modules | |
.tmp | |
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"node": true, | |
"browser": true, | |
"jquery":"$", | |
"quotmark": "single", | |
"camelcase": false, | |
"curly": true, | |
"eqeqeq": true, | |
"latedef": true, | |
"undef": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2014-08-21 using generator-angular 0.9.5 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type=number]{ | |
-moz-appearance:textfield; | |
} | |
input[type=number]::-webkit-inner-spin-button, | |
input[type=number]::-webkit-outer-spin-button { | |
-webkit-appearance: none; | |
margin: 0; | |
} |
OlderNewer