The string passed as an argument is compared with the primitive value of the receiving String object. Using simple character comparison techniques they may not match and would fail an A == B test. The locale sensitive comparison takes special international characters and locale specific text issues into account and properly matches the strings.
Prev | Home | Next |
String.link() | Up | String.match() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |