UNPKG

933 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * The name to display when a PluginError is thrown or emitted.
5 *
6 * @internal
7 */
8exports.PLUGIN_NAME = "gulp-transform";
9/**
10 * Tests whether a value is a function.
11 *
12 * @internal
13 */
14function isFunction(value) {
15 return typeof value === "function";
16}
17exports.isFunction = isFunction;
18/**
19 * Tests whether a value is either null or undefined.
20 *
21 * @internal
22 */
23function isNil(value) {
24 return value == null;
25}
26exports.isNil = isNil;
27/**
28 * Tests whether a value is an object that is not a function.
29 *
30 * @internal
31 */
32function isObjectLike(value) {
33 return typeof value === "object" && !!value;
34}
35exports.isObjectLike = isObjectLike;
36/**
37 * Tests whether a value is a string primitive.
38 *
39 * @internal
40 */
41function isString(value) {
42 return typeof value === "string";
43}
44exports.isString = isString;
45//# sourceMappingURL=common.js.map
\No newline at end of file