A Pen by Suman Paul on CodePen.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; | |
} |
This file contains hidden or 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
'use strict'; | |
var pkg = require('package.json'); | |
var path = require('path'); | |
var conf = require('./gulp/conf'); | |
var _ = require('lodash'); | |
var wiredep = require('wiredep'); | |
var babelMoreOptions = {presets: 'es2015'}; | |
var pathSrcHtml = [ |
This file contains hidden or 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
'use strict'; | |
var path = require('path'); | |
var gulp = require('gulp'); | |
var conf = require('./conf'); | |
var karma = require('karma'); | |
function runTests(singleRun, done) { |