You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
"use strict";
|
|
|
|
const matchVirtualProperty = require("./");
|
|
const virtualProperty = require("@validatem/virtual-property");
|
|
|
|
let propertyA = virtualProperty("foo");
|
|
let propertyB = "bar";
|
|
|
|
console.log(matchVirtualProperty(propertyA)); // true
|
|
console.log(matchVirtualProperty(propertyB)); // false
|
|
|