UNPKG

bobflux

Version:

Bobflux is pure functional implementation of FLUX architecture.

15 lines (14 loc) 427 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isCursor(obj) { return "key" in obj; } exports.isCursor = isCursor; function unifyStateName(prefix) { return prefix === "" ? "state" : prefix + "State"; } exports.unifyStateName = unifyStateName; function unifyCursorName(prefix) { return prefix === "" ? "cursor" : prefix + "Cursor"; } exports.unifyCursorName = unifyCursorName;