mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
177 B
TypeScript
9 lines
177 B
TypeScript
import parse = require('parse-unit');
|
|
const [number, length] = parse('10px');
|
|
number === 50;
|
|
length === 'px';
|
|
|
|
parse(10).length === 2;
|
|
parse(10)[0] === 10;
|
|
parse(10)[1] === '';
|