PHP Classes

File: public/js/tinymce/src/themes/inlite/src/main/js/alien/Type.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/main/js/alien/Type.js   Download  
File: public/js/tinymce/src/themes/inlite/src/main/js/alien/Type.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 978 bytes
 

Contents

Class file image Download
/** * Type.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.themes.inlite.alien.Type', [ ], function () { var isType = function (type) { return function (value) { return typeof value === type; }; }; var isArray = function (value) { return Array.isArray(value); }; var isNull = function (value) { return value === null; }; var isObject = function (predicate) { return function (value) { return !isNull(value) && !isArray(value) && predicate(value); }; }; return { isString: isType("string"), isNumber: isType("number"), isBoolean: isType("boolean"), isFunction: isType("function"), isObject: isObject(isType("object")), isNull: isNull, isArray: isArray }; } );