TypeScript/tests/baselines/reference/stringPropertyAccess.js

15 lines
339 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [stringPropertyAccess.ts]
var x = '';
var a = x.charAt(0);
var b = x.hasOwnProperty('charAt');
var c = x['charAt'](0);
var e = x['hasOwnProperty']('toFixed');
//// [stringPropertyAccess.js]
var x = '';
var a = x.charAt(0);
var b = x.hasOwnProperty('charAt');
var c = x['charAt'](0);
var e = x['hasOwnProperty']('toFixed');