Skip to content

Instantly share code, notes, and snippets.

View jaycliff's full-sized avatar
🏠
Working from home

Cliffmeister jaycliff

🏠
Working from home
View GitHub Profile
/*
Copyright 2015 Jaycliff Arcilla of Eversun Software Philippines Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
/*
Copyright 2015 Jaycliff Arcilla
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@jaycliff
jaycliff / typeof.js
Last active August 29, 2015 14:14
Douglas Crockford's typeOf and Jaycliff's innerTypeOf
function typeOf(value) {
"use strict";
var type = typeof value;
if (type === 'object') {
if (value) {
if (Object.prototype.toString.call(value) === '[object Array]') {
type = 'array';
}
} else {
type = 'null';
/*
Copyright 2015 Jaycliff Arcilla
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software